Error Verifying on Etherscan - Solved #898
-
The problem:It is just the verification which is the problem (contract deploys properly), more below. Really do not know what is wrong - everything seems fine. Terminal: (only including relevant details where the problem is) Nothing to compile
----------------------------------------------------
reusing "NftMarketplace" at 0xc25b468c02061AebD3390F80a75f29e2EE6d4BC3
Verifying...
Verifying contract...
TypeError: customChains is not iterable
at verify (/home/btwkraken/hardhat/hardhat-nft-market-backend/utils/verify.js:7:9)
at Object.module.exports [as func] (/home/btwkraken/hardhat/hardhat-nft-market-backend/deploy/01-deploy-nft-marketplace.js:24:9) Relevant code for the above:
const arguments = []
const nftMarketplace = await deploy("NftMarketplace", {
from: deployer,
args: arguments,
log: true,
waitConfirmations: waitBlockConfirmations,
})
// Verify the deployment
if (!developmentChains.includes(network.name) && process.env.ETHERSCAN_API_KEY) {
log("Verifying...")
await verify(nftMarketplace.address, arguments)
}
await run("verify:verify", {
address: contractAddress,
constructorArguments: args,
}) Any help is appreciated, thank you. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Recently ran into this issue as well when I attempted to verify a contract's source code on rinkeby. I adjusted the etherscan object in the hardhat config like so:
this was a suggestion given in the hardhat documentation for the etherscan plugin under the adding support for other networks section: https://hardhat.org/hardhat-runner/plugins/nomiclabs-hardhat-etherscan |
Beta Was this translation helpful? Give feedback.
Recently ran into this issue as well when I attempted to verify a contract's source code on rinkeby. I adjusted the etherscan object in the hardhat config like so:
this was a suggestion given in the hardhat documentation for the etherscan plugin under the adding support for other networks section: https…