Getting incorrect nonce error when using v6.1.0 #3887
AlejandroGV96
started this conversation in
General
Replies: 1 comment
-
You can add the following code after contract deployment. const contract = await contractFactory.deploy();
const deploymentReceipt = await contract.deploymentTransaction().wait(1); |
Beta Was this translation helpful? Give feedback.
0 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 everyone, sorry if this is not the way to do things, is my first time posting basically anything in GitHub.
When following tutorials online, I got an error which only seems to be happening when using version 6.1.0 of ethers,js.
I will post here the code to try to give as much info as possible, because I do not know if there is a bug or I am causing the problem.
As a matter of fact, I am running a Ganache Quickstart workspace.
This is the code:
And this is the error response I get when running
tsc -p . && node deploy.js
Interestingly, the code works when running
tsc -p . && node deploy.js
for the first time after starting ganache server, but fails right after that always with account having one more nonce than tx.Beta Was this translation helpful? Give feedback.
All reactions