Closed gibsfinancedev closed 2 months ago
can create a minimal reproducible if this description is not sufficient
Hi @gibsfinancedev, sorry for the delayed response. I tested this with a sample project and 10+ copies of the Lock contract using the Sepolia network:
β hh ignition deploy ./ignition/modules/Lock.ts --network sepolia
β Confirm deploy to network sepolia (11155111)? β¦ yes
Compiled 1 Solidity file successfully (evm target: paris).
Hardhat Ignition π
Deploying [ LockModule ]
Batch #1
Executed LockModule#Lock
[ LockModule ] successfully deployed π
Deployed Addresses
LockModule#Lock - 0x78fB6E066FC263B33e4f193AE12b92e7F02b2200
β hh verify --network sepolia 0x78fB6E066FC263B33e4f193AE12b92e7F02b2200 1893456000
Successfully submitted source code for contract
contracts/Lock.sol:Lock at 0x78fB6E066FC263B33e4f193AE12b92e7F02b2200
for verification on the block explorer. Waiting for verification result...
Successfully verified contract Lock on the block explorer.
https://sepolia.etherscan.io/address/0x78fB6E066FC263B33e4f193AE12b92e7F02b2200#code
Successfully verified contract Lock on Sourcify.
https://repo.sourcify.dev/contracts/full_match/11155111/0x78fB6E066FC263B33e4f193AE12b92e7F02b2200/
Unfortunately, I wasn't able to reproduce the error. Does it still happen for you? If so, could you provide a minimal reproducible example?
One thing I noticed is that you're passing multiple addresses to the verify task. The task can only verify one contract at a time, so all other addresses after the first one would be interpreted as constructor arguments for your contract.
Hey @gibsfinancedev, I'm assuming this issue is no longer occurring for you, so I'll go ahead and close it. If that's not the case and you can provide a minimal example, please leave a comment and I'll be happy to reopen it.
Version of Hardhat
2.20
What happened?
for sourcify verification to be successful
the contract listed is different half of the time. so it seems like it might be related to a file read bug or something similar?
Minimal reproduction steps
have 10+ files deploy to mainnet verify with etherscan and enable the sourcify config profit
Search terms
No response