Open shawnesquivel opened 1 year ago
as per this recommendation, https://github.com/smartcontractkit/hardhat-starter-kit/issues/140 I changed my hardhat.config.js etherscan property to include the following. I'm not sure why it works, all I know is that it works - my contract was successfully verified after doing this.
module.exports = {
etherscan: {
apiKey: ETHERSCAN_API_KEY,
customChains: [],
},
}
then re-deploying
yarn hardhat deploy --network goerli
in your config file add custom chains in etherscan . etherscan: { apiKey: ETHERSCAN_API_KEY, customChains: [], },
I have an issue when deploying my 01-deploy-fund-me.js script. When I type into command line:
I get the following error. Following the stack trace, it looks like in prober.ts, there is a destructuring of customChains which should be an array. I'm not sure where customChains comes from though.
Error Message
01-deploy-fund-me.js
verify.js