Explore-Beyond-Innovations/ZeroXBridge_Contracts
Voir sur GitHubFix L1 Failing Tests
Open
#113 ouverte le 21 août 2025
3 Days ETAL1 Contractbuggood first issue
Métriques du dépôt
- Stars
- (4 stars)
- Métriques de merge PR
- (Métriques PR en attente)
Description
Description 📹
Several tests related to unlocking with proofs are failing due to configuration or implementation issues in the commitment hash validation logic. This is causing revert errors during the claim process for multiple tokens.
Failing Tests
[FAIL: revert: ZeroXBridge: Invalid commitment hash]testClaimReducesTokenReserveDAI (gas: 527,631)[FAIL: revert: msgHash out of range]testClaimReducesTokenReserveETH (gas: 438,766)[FAIL: revert: msgHash out of range]testClaimReducesTokenReserveUSDC (gas: 526,570)
Helpful links
https://github.com/Explore-Beyond-Innovations/ZeroXBridge_Contracts/pull/112#discussion_r2291688085 https://github.com/Explore-Beyond-Innovations/ZeroXBridge_Contracts/pull/112#discussion_r2291688091
Proposed Actions ✅
- Investigate the proof verification and commitment hash logic in the claim flow.
- Verify that the commitment hash and msgHash are being generated and validated consistently across tests and contract logic.
- Update configurations or logic to ensure the proof verification passes for supported tokens.
- Run the full test suite to confirm that all failing tests are resolved.
Acceptance Criteria 🧾
- All three failing tests pass successfully.
- No regression in related claim or reserve management functionality.
- Code changes are documented clearly in the PR with details on what caused the failures and how they were fixed.