Closed RaeII closed 1 month ago
What's the isHardhatNetwork()
function?
And why did you comment the line for constructor argus?
isHardhatNetwork() -> checks that it is not a hardhat local network I was just testing, that's why I commented it out, but the error is still happening anyway await run('verify:verify', { address: contractAddress, constructorArguments: args, contract: 'contracts/Valocrazy.sol:Valocrazy', });
I deployed on the Sepolia network, and the verification worked, so I believe it might be an issue with the Moonbeam network
Yeah, it maybe.
For what it's worth. I tried verifying a contract on Optimism Etherscan today that also threw this error and unsure how to debug it. Might be etherscan? Used to work in the past and changed nothing, so assuming that it's etherscan.
I also believe the issue might be with Etherscan. I've contacted their support and am waiting for a response
I've had the same issue with https://optimistic.etherscan.io/.
Encountered an error verifying this contract:
Response: `NOTOK`
Details: `General exception occured when attempting to insert record`
The same contracts (identical contracts, identical initcode, CREATE2-deployed to the same address) verify successfully on other chains including Arbitrum and Base.
I think the Etherscan's OP Mainnet instance may be bugged specifically.
Version of Hardhat
2.22.6
What happened?
When I try to verify a contract, I get this error message:
However, it only happens with some contracts, not all of them.
This is the function I use for verification:
Hardhat config
My envs are all working fine.
Minimal reproduction steps
I'm deploying and verifying on the moobase-alpha network, which is the test network of Moonbeam.
I've already tried with flatten, but the error persists
Search terms
No response