You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Two test failed in contract testing, it seems address(ALICE) doesn't give correct address. But if I hardcoded it to exact address, tokenBalance always returned 0.
> contracts % forge test --root .
[⠢] Compiling...
[⠑] Compiling 4 files with 0.8.19
[⠘] Solc 0.8.19 finished in 433.60ms
Compiler run successful!
Running 6 tests for src/test/MerkleClaimERC20.t.sol:Tests
[FAIL. Reason: NotInMerkle()] testAliceClaim() (gas: 16464)
[FAIL. Reason: NotInMerkle()] testBobClaimForAlice() (gas: 21072)
[PASS] testFailAliceClaimInvalidAmount() (gas: 12869)
[PASS] testFailAliceClaimInvalidProof() (gas: 12827)
[PASS] testFailAliceClaimTwice() (gas: 12816)
[PASS] testFailBobClaim() (gas: 12815)
Test result: FAILED. 4 passed; 2 failed; finished in 611.83µs
Failing tests:
Encountered 2 failing tests in src/test/MerkleClaimERC20.t.sol:Tests
[FAIL. Reason: NotInMerkle()] testAliceClaim() (gas: 16464)
[FAIL. Reason: NotInMerkle()] testBobClaimForAlice() (gas: 21072)
Encountered a total of 2 failing tests, 4 tests succeeded
The text was updated successfully, but these errors were encountered:
Two test failed in contract testing, it seems
address(ALICE)
doesn't give correct address. But if I hardcoded it to exact address,tokenBalance
always returned 0.The text was updated successfully, but these errors were encountered: