The Solidity contract hardcodes MAX_TREASURES = 10, and the normal post-hunt withdrawal path requires claimsCount >= MAX_TREASURES. However, the Noir circuit currently contains only 9 unique allowed treasure hashes because the final entry in ALLOWED_TREASURE_HASHES is duplicated.
This creates a cross-module inconsistency between the contract’s terminal condition and the circuit’s effective set of uniquely claimable treasures.
If duplicate-claim protection is fixed as intended, the system may allow only 9 unique successful treasure claims while still requiring 10 claims before withdraw() is permitted.
This can lead to:
an unreachable normal terminal condition
residual ETH remaining locked unless an emergency owner path is used
inconsistent assumptions between contract logic and circuit logic
The inconsistency can be reasoned about directly from the code. If the circuit exposes only 9 unique hashes, then the contract’s 10-claim terminal condition may never be satisfied.
In Solidity:
and:
In Noir:
Bring the contract and circuit back into agreement. The preferred fix is to restore the intended unique allowlist in the circuit, then regenerate all dependent artifacts.
Or, if the intended number of distinct treasures is actually 9, then the contract should instead be updated to match that design decision:
The contest is live. Earn rewards by submitting a finding.
This is your time to appeal against judgements on your submissions.
Appeals are being carefully reviewed by our judges.
The contest is complete and the rewards are being distributed.