Content pfp
Content
@
0 reply
0 recast
0 reaction

andrei pfp
andrei
@andreitr.eth
Solidity devs. I am having a hard time verifying a smart contract on BASE via forge verify-contract. I am getting "Etherscan could not detect the deployment" event though the contract is deployed: 0x7822465cD6F5A553F464F82ADA1b2ea33bCB2634 Ideas? https://github.com/andreitr/basedbits/blob/main/src/BBitsCheckIn.sol
4 replies
0 recast
4 reactions

memes du monde 🎩 pfp
memes du monde 🎩
@mrmemes.eth
Your verification invocation should look something like: forge verify-contract 0x7822465cD6F5A553F464F82ADA1b2ea33bCB2634 BBitsCheckIn --watch --chain 8453 --compiler-version VERS --optimizer-runs RUNS --etherscan-api-key KEY --constructor-args $(cast abi-encode "constructor(address,address) ADDR_ONE ADDR_TWO)
1 reply
0 recast
1 reaction

memes du monde 🎩 pfp
memes du monde 🎩
@mrmemes.eth
You may not need to specify compiler version or optimizer runs depending on your deploy settings and if you cached your broadcast (there would be a broadcast directory where you deployed from locally). Your error message makes it sound like the order of the arguments might be wrong, check that.
1 reply
0 recast
0 reaction

memes du monde 🎩 pfp
memes du monde 🎩
@mrmemes.eth
Other than that make sure you have your constructor arguments in the right order. Feel free to HMU if that doesn't get it.
2 replies
0 recast
1 reaction

andrei pfp
andrei
@andreitr.eth
Thanks! I will try adding those additional params. The crazy thing is that I deployed and verified an earlier version of the contact without any issues.
0 reply
0 recast
0 reaction