foundry
foundry copied to clipboard
bug(forge verify-bytecode): execution reverted: EvmError: Revert (gas: 171624)
Component
Forge
Have you ensured that all of these are up to date?
- [x] Foundry
- [X] Foundryup
What version of Foundry are you on?
forge 0.2.0 (fa0e0c2 2024-08-22T00:19:05.210000000Z)
What command(s) is the bug in?
forge verify-bytecode
Operating System
macOS (Apple Silicon)
Describe the bug
I'm getting an error when trying to verify a predeploy on Zora. I'm passing the --ignore creation
to each of the commands because we don't have creation code for these predeploys.
Steps To Reproduce
git clone https://github.com/ethereum-optimism/optimism.git
cd optimism/packages/contracts-bedrock
git checkout 6eb05430d1ec1ae18ee96c2a206c60cc80fcbcf6
forge build --skip test scripts
forge verify-bytecode 0xc0d3c0d3c0d3c0d3c0d3c0d3c0d3c0d3c0d30007 L2CrossDomainMessenger --rpc-url https://rpc.zora.energy --verifier-url https://explorer.zora.energy/api --ignore creation --json
I'm not entirely sure what the error message I'm getting means. There is definitely code at this address: https://explorer.zora.energy/address/0xC0d3c0d3c0D3c0D3C0d3C0D3C0D3c0d3c0d30007?tab=contract.
execution reverted: EvmError: Revert (gas: 171624)
Screenshot:
I was able to get the forge verify-bytecode
command working for a predeploy on Metal:
git clone https://github.com/ethereum-optimism/optimism.git
cd optimism/packages/contracts-bedrock
git checkout op-contracts/v1.3.0
forge build --skip test scripts
forge verify-bytecode 0xc0d3c0d3c0d3c0d3c0d3c0d3c0d3c0d3c0d30007 L2CrossDomainMessenger --rpc-url https://rpc.metall2.com --verifier-url https://explorer.metall2.com/api --ignore creation --json
cc: @yash-atreya @zerosnacks