Skip to content

Conversation

@defispartan
Copy link

@defispartan defispartan commented Jun 24, 2025

Set evm version in foundry.toml to fix revert error

  [1024208712] Deploy::run()
    │   └─ ← [Stop]
    ├─ [0] console::9710a9d0(0000000000000000000000000000000000000000000000000000000000000040000000000000000000000000000000000000000000000000000af5f5866024f100000000000000000000000000000000000000000000000000000000000000124465706c6f7965722062616c616e63653a200000000000000000000000000000) [staticcall]
    │   └─ ← [Revert] unknown selector `0x9710a9d0` for ConsoleCalls
    ├─ [0] console::9710a9d0(000000000000000000000000000000000000000000000000000000000000004000000000000000000000000000000000000000000000000000000000015b780d000000000000000000000000000000000000000000000000000000000000000d426c6f636b4e756d6265723a2000000000000000000000000000000000000000) [staticcall]
    │   └─ ← [Revert] unknown selector `0x9710a9d0` for ConsoleCalls
    ├─ [0] console::9710a9d0(0000000000000000000000000000000000000000000000000000000000000040000000000000000000000000000000000000000000000000000000000000a4b10000000000000000000000000000000000000000000000000000000000000009436861696e49643a200000000000000000000000000000000000000000000000) [staticcall]
    │   └─ ← [Revert] unknown selector `0x9710a9d0` for ConsoleCalls
    ├─ [0] console::log("Deploying vault...") [staticcall]
    │   └─ ← [Stop]
    ├─ [0] VM::startBroadcast(<pk>)
    │   └─ ← [Return]
    ├─ [1024151396] → new <unknown>@0x5aAdFB43eF8dAF45DD80F4676345b7676f1D70e3
    │   ├─ emit Initialized(version: 255)
    │   ├─ [2350] 0xa97684ead0e402dC232d5A977953DF7ECBaB3CDb::getPool() [staticcall]
    │   │   └─ ← [Return] 0x794a61358D6845594F94dc1DB02A252b5b4814aD
    │   ├─ [1023728770] 0x794a61358D6845594F94dc1DB02A252b5b4814aD::getReserveData(0xaf88d065e77c8cC2239327C5EDb3A432268e5831) [staticcall]
    │   │   ├─ [63] 0x7f775bb7af2e7E09D5Dc9506c95516159a5cA0D0::getReserveData(0xaf88d065e77c8cC2239327C5EDb3A432268e5831) [delegatecall]
    │   │   │   └─ ← [NotActivated] EvmError: NotActivated
    │   │   └─ ← [Revert] EvmError: Revert
    │   └─ ← [Revert]
    └─ ← [Revert] EvmError: Revert

Closes #96

@github-actions
Copy link

Changes to gas cost

Generated at commit: b63e7fb5e1815978c56fe17215a42cab29563351, compared to commit: dc25b5a1b57a7b206757fdcb849ccd09ca765fd9

🧾 Summary (20% most significant diffs)

Contract Method Avg (+/-) %

Full diff report 👇
Contract Deployment Cost (+/-) Method Min (+/-) % Avg (+/-) % Median (+/-) % Max (+/-) % # Calls (+/-)
ATokenVault 5,036,104 (+1,536)

[profile.default]
solc = "0.8.10"
bytecode_hash = "none"
evm_version = "shanghai"
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
evm_version = "shanghai"
evm_version = "paris"

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I get the same error when trying to deploy with evm_version = "paris"

With evm_version = "shanghai" it succeeds

   ├─ [0] VM::startBroadcast(<pk>)
    │   └─ ← [Return]
    ├─ [1024151396] → new <unknown>@0x5aAdFB43eF8dAF45DD80F4676345b7676f1D70e3
    │   ├─ emit Initialized(version: 255)
    │   ├─ [2350] 0xa97684ead0e402dC232d5A977953DF7ECBaB3CDb::getPool() [staticcall]
    │   │   └─ ← [Return] 0x794a61358D6845594F94dc1DB02A252b5b4814aD
    │   ├─ [1023728770] 0x794a61358D6845594F94dc1DB02A252b5b4814aD::getReserveData(0xaf88d065e77c8cC2239327C5EDb3A432268e5831) [staticcall]
    │   │   ├─ [63] 0x7f775bb7af2e7E09D5Dc9506c95516159a5cA0D0::getReserveData(0xaf88d065e77c8cC2239327C5EDb3A432268e5831) [delegatecall]
    │   │   │   └─ ← [NotActivated] EvmError: NotActivated
    │   │   └─ ← [Revert] EvmError: Revert
    │   └─ ← [Revert]
    └─ ← [Revert] EvmError: Revert

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Deploy script failing when deploying to arbitrum

3 participants