Skip to content
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

issue with nonce when starting a hardhat chain #47

Open
brossetti1 opened this issue Sep 13, 2021 · 1 comment
Open

issue with nonce when starting a hardhat chain #47

brossetti1 opened this issue Sep 13, 2021 · 1 comment
Assignees
Labels
bug Something isn't working Dan HAAALLPP

Comments

@brossetti1
Copy link
Collaborator

when starting a new hardhat chain, then trying to do a transaction, the wallet we have set up through the mneumonic is remmebering previous transactions that dont technically exist when you restart hardhat. When trying to do a new transaction the wallet defaults to the cumulative nonce - see below - metamask defaults to nonce 8 but the hardhat chain is expecting nonce 0

Something went wrong with your minting: Error: [ethjs-query] while formatting outputs from RPC '{"value":{"code":-32603,"data":{"code":-32000,"message":"Nonce too high. Expected nonce to be 0 but got 8. Note that transactions can't be queued when automining."}}}'

Screen Shot 2021-09-13 at 11 39 39 AM

cheap workaround:

go to metamask settings -> advanced -> turn edit nonce on

on each transaction - just set the nonce to the one it is expecting..

or reset the account

https://blog.chronologic.network/how-to-change-and-reset-your-nonce-in-metamask-f7ca52f480e5

@brossetti1 brossetti1 added bug Something isn't working Dan HAAALLPP labels Sep 13, 2021
@Dan-Nolan
Copy link
Collaborator

Hm, yup I was just going to suggest resetting your metamask account 😦

Not much else to be done that I can think of on this one

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working Dan HAAALLPP
Projects
None yet
Development

No branches or pull requests

4 participants