Skip to content

Fix L1 Failing Tests #113

@JoE11-y

Description

@JoE11-y

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

#112 (comment)
#112 (comment)

Proposed Actions ✅

  1. Investigate the proof verification and commitment hash logic in the claim flow.
  2. Verify that the commitment hash and msgHash are being generated and validated consistently across tests and contract logic.
  3. Update configurations or logic to ensure the proof verification passes for supported tokens.
  4. 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.

Metadata

Metadata

Assignees

Labels

3 Days ETAWithin Three days, send in a PR. Failure to do so will result in a reassignment of your issues.L1 ContractbugSomething isn't workinggood first issueGood for newcomers

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions