foundry
foundry copied to clipboard
bug(forge script): contract created by constructor fails to be verified
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 (f9ca6ec 2023-10-09T00:31:35.276575000Z)
What command(s) is the bug in?
forge script script/proxy2.s.sol:CounterScript --rpc-url $HOLESKY_RPC_URL --broadcast --verify -vvvv
Operating System
macOS (Apple Silicon)
Describe the bug
Submitted contract for verification:
Response: OK
GUID: r2guhchw9zuqmd77wngnkbdfn6719m9esaemenrzmprhetwkat
URL:
https://holesky.etherscan.io/address/0xd2cee67865574f35d794f3093c3ff0d2f16b8c1b
Contract verification status:
Response: NOTOK
Details: Pending in queue
Contract verification status:
Response: NOTOK
Details: Fail - Unable to verify. Compiled contract deployment bytecode does NOT match the transaction deployment bytecode.
Contract failed to verify.
Inherit the contract, the contract created inside the constructor failed to verify