superchain-ops
superchain-ops copied to clipboard
Test Failure - Latest Foundry Version
On the current foundry version, the ByteCodeComparison tests consistently fail:
[FAIL: call didn't revert at a lower depth than cheatcode call depth] test_differentBytecode_reverts() (gas: 193632)
Traces:
[193632] BytecodeComparison_compare_Test::test_differentBytecode_reverts()
├─ [42237] → new MockContract@0x5615dEB798BB3E4dFa0139dFa1b3D433Cc23b72f
│ └─ ← [Return] 209 bytes of code
├─ [82329] → new VeryDifferentContract@0x2e234DAe75C793f67A35089C9d99245E1C58470b
│ └─ ← [Return] 411 bytes of code
├─ [0] VM::expectRevert(custom error 0xf28dceb3: +BytecodeComparison: diff in bytecode length)
│ └─ ← [Return]
└─ ← [Revert] revert: BytecodeComparison: diff in bytecode length
[PASS] test_identicalBytecode_succeeds() (gas: 222231)
[PASS] test_multipleAllowedDiffs_succeeds() (gas: 10018)
[FAIL: call didn't revert at a lower depth than cheatcode call depth] test_unallowedDiff_reverts() (gas: 7141)
Traces:
[7141] BytecodeComparison_compare_Test::test_unallowedDiff_reverts()
├─ [0] VM::expectRevert(custom error 0xf28dceb3: ?BytecodeComparison: unexpected diff found at index:2, byte:0xff)
│ └─ ← [Return]
└─ ← [Revert] revert: BytecodeComparison: unexpected diff found at index:2, byte:0xff
[FAIL: call didn't revert at a lower depth than cheatcode call depth] test_wrongDiffContent_reverts() (gas: 8507)
Traces:
[8507] BytecodeComparison_compare_Test::test_wrongDiffContent_reverts()
├─ [0] VM::expectRevert(custom error 0xf28dceb3: ?BytecodeComparison: unexpected diff found at index:2, byte:0xff)
│ └─ ← [Return]
└─ ← [Revert] revert: BytecodeComparison: unexpected diff found at index:2, byte:0xff
[FAIL: call didn't revert at a lower depth than cheatcode call depth] test_wrongDiffPosition_reverts() (gas: 7990)
Traces:
[7990] BytecodeComparison_compare_Test::test_wrongDiffPosition_reverts()
├─ [0] VM::expectRevert(custom error 0xf28dceb3: ?BytecodeComparison: unexpected diff found at index:2, byte:0xff)
│ └─ ← [Return]
└─ ← [Revert] revert: BytecodeComparison: unexpected diff found at index:2, byte:0xff
Suite result: FAILED. 4 passed; 4 failed; 0 skipped; finished in 2.94s (20.34ms CPU time)
forge version:
forge --version
forge Version: 1.0.0-nightly
Commit SHA: 2b107e5c99a1e16607820f15036e36e115a0bcbf
Build Timestamp: 2025-02-10T00:23:03.711506000Z (1739146983)
Build Profile: maxperf