-
Notifications
You must be signed in to change notification settings - Fork 1.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
wait() after a deployment didn't work #4093
Comments
For the moment, to bypass the issue, i've write something like this :
And it's work perfectly, the verify task work |
Confirmed, thanks. I'll work on this asap. |
Hi @FournyP, I took another look into this and apparently this is an upstream bug in ethers. I opened an issue about it: ethers-io/ethers.js#4212 I'm going to mark this issue as blocked and close it after ethers releases a fix for that. |
In the meantime, this workaround might be useful: const deploymentTx = contract.deploymentTransaction();
await provider.waitForTransaction(deploymentTx.hash, 3); |
This is working now with |
Version of Hardhat
2.15.0
What happened?
Durring a task to deploy on mumbai testnet, I want to wait for 5 or 20 transactions before to run the verify task.
But it's seem that the wait function doesn't work.
I've try to put 100 in the wait function but the programm pass directly to the next steps...
My dependencies :
I've check the
wait
function and I found that theconfirms
param is not used :Maybe by passing the argument to the super function it will work ? I've never really use classes in TS
Minimal reproduction steps
Write a task to deploy on the mumbai network like this :
The res variable will be display a millisecond after the collection address. To my opinions, it didn't wait
As a result, I got the following error from the verify task :
Thanks for this librarie, it's awesome
Have a good day ;)
Search terms
wait deploy deployement hardhat
The text was updated successfully, but these errors were encountered: