You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
owen@DESKTOP-OWEN:~/hh-fcc/hardhat-smartcontract-lottery-fcc$ yarn hardhat deploy --network sepolia
yarn run v1.22.22
$ /home/owen/hh-fcc/hardhat-smartcontract-lottery-fcc/node_modules/.bin/hardhat deploy --network sepolia
Nothing to compile
----------------------------------------------------
deploying "Raffle" (tx: 0x52e41391f21fb0d78b4e519f1389755ab08db43c720e9a7e6b900f82d1ae4ef3)...: deployed at 0x66AEa18112501298988F531c3159D7B4a72Ce6cd with 1224148 gas
Verifying...
Verifying contract...
TypeError: customChains is not iterable
at getEtherscanEndpoints (/home/owen/hh-fcc/hardhat-smartcontract-lottery-fcc/node_modules/@nomiclabs/hardhat-etherscan/src/network/prober.ts:23:37)
at processTicksAndRejections (node:internal/process/task_queues:95:5)
at Environment._runTaskDefinition (/home/owen/hh-fcc/hardhat-smartcontract-lottery-fcc/node_modules/hardhat/src/internal/core/runtime-environment.ts:351:14)
at Environment.run (/home/owen/hh-fcc/hardhat-smartcontract-lottery-fcc/node_modules/hardhat/src/internal/core/runtime-environment.ts:184:14)
at SimpleTaskDefinition.verifySubtask [as action] (/home/owen/hh-fcc/hardhat-smartcontract-lottery-fcc/node_modules/@nomiclabs/hardhat-etherscan/src/index.ts:221:30)
at Environment._runTaskDefinition (/home/owen/hh-fcc/hardhat-smartcontract-lottery-fcc/node_modules/hardhat/src/internal/core/runtime-environment.ts:351:14)
at Environment.run (/home/owen/hh-fcc/hardhat-smartcontract-lottery-fcc/node_modules/hardhat/src/internal/core/runtime-environment.ts:184:14)
at verify (/home/owen/hh-fcc/hardhat-smartcontract-lottery-fcc/utils/verify.js:9:9)
at Object.module.exports [as func] (/home/owen/hh-fcc/hardhat-smartcontract-lottery-fcc/deploy/01-deploy-raffle.js:60:9)
at DeploymentsManager.executeDeployScripts (/home/owen/hh-fcc/hardhat-smartcontract-lottery-fcc/node_modules/hardhat-deploy/src/DeploymentsManager.ts:1220:22)
Enter lottery with command:
yarn hardhat run scripts/enterRaffle.js --network sepolia
----------------------------------------------------
Done in 76.37s.
verify.js
// we can't have these functions in our `helper-hardhat-config`// since these use the hardhat library// and it would be a circular dependencyconst{ run }=require("hardhat")constverify=async(contractAddress,args)=>{console.log("Verifying contract...")try{awaitrun("verify:verify",{address: contractAddress,constructorArguments: args,})}catch(e){if(e.message.toLowerCase().includes("already verified")){console.log("Already verified!")}else{console.log(e)}}}module.exports={
verify,}
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Hi , please help me .
error code:
verify.js
Beta Was this translation helpful? Give feedback.
All reactions