foundry-zksync: Unknown revert on aave codebase
Component
Forge
Have you ensured that all of these are up to date?
- Foundry
- Foundryup
What version of Foundry are you on?
forge 0.0.4 (ae913af 2025-01-24T00:24:38.858714000Z)
What version of Foundryup are you on?
No response
What command(s) is the bug in?
forge test
Operating System
macOS (Apple Silicon)
System Specifications
No response
Describe the bug
We’re currently preparing the upgrade of aave v3.4 and are getting unexpected reverts on zksync. The same upgrade works accross all other chains, so i think it’s likely a zksync related problem (using to new cheatcodes etc), but i cannot figure out what it is exactly.
https://github.com/bgd-labs/protocol-v3.4-upgrade/pull/14 FOUNDRY_PROFILE=zksync forge test --zksync -vvv --mt test_diff
The code reverts with:
├─ [259598] 0x78e30497a3c7527d953c6B1E3541b021A98Ac43c::flashLoan(ZkSyncTest: [0x7FA9385bE102ac3EAc297483Dd6233D62b3e1496], [0x1d17CBcF0D6D143135aE902365D2E5e2A16538D4], [10001805025 [1e10]], [0], 0x6813Eb9362372EEF6200f3b1dbC3f819671cBA69, 0x, 0)
│ ├─ [145844] 0x78e30497a3c7527d953c6B1E3541b021A98Ac43c::flashLoan(ZkSyncTest: [0x7FA9385bE102ac3EAc297483Dd6233D62b3e1496], [0x1d17CBcF0D6D143135aE902365D2E5e2A16538D4], [10001805025 [1e10]], [0], 0x6813Eb9362372EEF6200f3b1dbC3f819671cBA69, 0x, 0)
│ │ ├─ [2920] 0x2A3948BB219D6B2Fa83D64100006391a96bE6cb7::getACLManager()
│ │ │ └─ ← [Return] 0xc6150b63c2F02528d4A969a248710A4658ed7928
│ │ ├─ [3664] 0xc6150b63c2F02528d4A969a248710A4658ed7928::isFlashBorrower(0x6813Eb9362372EEF6200f3b1dbC3f819671cBA69)
│ │ │ └─ ← [Return] false
│ │ ├─ [100991] 0x78e30497a3c7527d953c6B1E3541b021A98Ac43c::2e7263ea(00000000000000000000000000000000000000000000000000000000000000340000000000000000000000000000000000000000000000000000000000000036000000000000000000000000000000000000000000000000000000000000003759f8073f09b6507c25318369fc134ee6e70fe399104e729b1b41d67466b9776100000000000000000000000000000000000000000000000000000000000000a00000000000000000000000006813eb9362372eef6200f3b1dbc3f819671cba690000000000000000000000007fa9385be102ac3eac297483dd6233d62b3e149600000000000000000000000000000000000000000000000000000000000001c00000000000000000000000000000000000000000000000000000000000000200000000000000000000000000000000000000000000000000000000000000024000000000000000000000000057815ab06d846d7decd326ee541cd06144fed2370000000000000000000000006813eb9362372eef6200f3b1dbc3f819671cba690000000000000000000000000000000000000000000000000000000000000280000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000050000000000000000000000002a3948bb219d6b2fa83d64100006391a96be6cb700000000000000000000000078e30497a3c7527d953c6b1e3541b021a98ac43c0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000010000000000000000000000001d17cbcf0d6d143135ae902365d2e5e2a16538d400000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000000000000000000254276ee1000000000000000000000000000000000000000000000000000000000000000100000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000)
│ │ │ ├─ [36918] 0xE977F9B2a5ccf0457870a67231F23BE4DaecfbDb::totalSupply()
│ │ │ │ ├─ [21090] 0xE977F9B2a5ccf0457870a67231F23BE4DaecfbDb::totalSupply()
│ │ │ │ │ ├─ [9238] 0x78e30497a3c7527d953c6B1E3541b021A98Ac43c::getReserveNormalizedIncome(0x1d17CBcF0D6D143135aE902365D2E5e2A16538D4)
│ │ │ │ │ │ ├─ [5292] 0x78e30497a3c7527d953c6B1E3541b021A98Ac43c::getReserveNormalizedIncome(0x1d17CBcF0D6D143135aE902365D2E5e2A16538D4)
│ │ │ │ │ │ │ └─ ← [Return] 1034314353691248773691317974 [1.034e27]
│ │ │ │ │ │ └─ ← [Return] 1034314353691248773691317974 [1.034e27]
│ │ │ │ │ └─ ← [Return] 1413292681543 [1.413e12]
│ │ │ │ └─ ← [Return] 1413292681543 [1.413e12]
│ │ │ ├─ [44745] 0xE977F9B2a5ccf0457870a67231F23BE4DaecfbDb::transferUnderlyingTo(ZkSyncTest: [0x7FA9385bE102ac3EAc297483Dd6233D62b3e1496], 10001805025 [1e10])
│ │ │ │ ├─ [40829] 0xE977F9B2a5ccf0457870a67231F23BE4DaecfbDb::transferUnderlyingTo(ZkSyncTest: [0x7FA9385bE102ac3EAc297483Dd6233D62b3e1496], 10001805025 [1e10])
│ │ │ │ │ ├─ [35805] 0x1d17CBcF0D6D143135aE902365D2E5e2A16538D4::transfer(ZkSyncTest: [0x7FA9385bE102ac3EAc297483Dd6233D62b3e1496], 10001805025 [1e10])
│ │ │ │ │ │ ├─ [20658] 0x1d17CBcF0D6D143135aE902365D2E5e2A16538D4::transfer(ZkSyncTest: [0x7FA9385bE102ac3EAc297483Dd6233D62b3e1496], 10001805025 [1e10])
│ │ │ │ │ │ │ └─ ← [Return] true
│ │ │ │ │ │ └─ ← [Return] true
│ │ │ │ │ └─ ← [Return]
│ │ │ │ └─ ← [Return]
│ │ │ ├─ [270] ZkSyncTest::executeOperation([0x1d17CBcF0D6D143135aE902365D2E5e2A16538D4], [10001805025 [1e10]], [5000903 [5e6]], 0x6813Eb9362372EEF6200f3b1dbC3f819671cBA69, 0x)
│ │ │ │ └─ ← [Return]
│ │ │ └─ ← [Revert] Unknown revert reason
│ │ └─ ← [Revert] Unknown revert reason
│ └─ ← [Revert] EvmError: Revert
└─ ← [Revert] EvmError: Revert
About this issue
- Original URL
- State: closed
- Created a year ago
- Comments: 18 (12 by maintainers)
@dutterbutter
FOUNDRY_PROFILE=zksync forge test --zksync -vvv@dutterbutter as a temporary workaround i think is fine yes, please ping me once #1074 is released please.
You can just remove the
-privateit’s the same repo, same commits etc. Sorry forgot to mention.