foundry: Verifying contracts on optimsm doesn't work on Optimism
Component
Forge
Have you ensured that all of these are up to date?
- Foundry
- Foundryup
What version of Foundry are you on?
forge 0.2.0 (6130af7 2022-04-06T00:04:11.858449+00:00)
What command(s) is the bug in?
forge verify-contract
Operating System
macOS (M1)
Describe the bug
Trying to verify an optimism contract with:
forge verify-contract --chain-id 69 --num-of-optimizations 1000000 --constructor-args < abi-encoded-args > --compiler-version v0.8.13+commit.abaa5c0e < contract-address > < path:contract > < etherscan-key >
does not work. When verifying the verification I get the message below which is not very telling. Not sure what could be wrong, followed the docs very closely.
Error:
0: Contract verification failed:
Response: NOTOK
Details: Fail - Unable to verify
About this issue
- Original URL
- State: closed
- Created 2 years ago
- Comments: 25 (14 by maintainers)
ah, after updating to the latest version with
foundryupI can see it works on rinkeby now. I was using a version from early April. sorry for cluttering the thread.will debug this on optimism!