Replies: 1 comment 2 replies
-
@Chevy3000
also you don't need this Here's my Run First one without Hope It Helps |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi guys,
Hoping someone can help me out here.
I am on lesson 6, deploying the SimpleStorage contract to sepolia, everything runs smoothly until I reach verify, I keep getting the following error:
This would make sense to me however I have already waited for 6 confirmations before calling verify():
Once I deploy the script and get the verification error, I can verify in the console by typing:
yarn hardhat verify --network sepolia 0xd5999bA6cDbd82D8646b81B809Ee05Cb465503b3
This make me think that my script and environment variables have been set up correctly and it is indeed just an issue with waiting after deployment.
So I tested something, I put
await simpleStorage.deploymentTransaction().wait(100000)
to wait 100,000 blocks before verifying, expecting the script too hang and take too long to finish. however it took even less time than before. I'm thinking that I'm not waiting properly in my script but I cant understand why :(After trying a lot of solutions I'm thinking it could be that the latest hardhat uses ethers6 and maybe I'm using the deploymentTrancasction() or the waitforDeployment() functions wrong. Or maybe I have not understood async functions properly and am not using tx.wait() properly.
Hoping someone has some ideas to help me :)
I've attached my script and my repo.
Repo: https://github.com/Chevy3000/Hardhat_ss
Thanks for the help.
Beta Was this translation helpful? Give feedback.
All reactions