I am testing stuff on Ganache and am using Metamask to send transactions to simulate user behavior with the app. Now here's the issue. If I restart Ganache it resets all accounts (no problem with that). However, Metamask keeps the old transactions in it's memory and thinks the nonce of a new transaction is nonzero. That is not true.

If I want to fix this, I should delete all my accounts, which I am not going to do. There should be a default way of resetting nonces. I've tried reconnecting to the network, but it seems that it remembers that even "localhost:7545" will be the same network all the time, hence nonces never change.

  • Never mind, you can reset an account which is hidden in the "settings" menu.
    – JBrouwer
    Mar 30 '18 at 13:45

According to this documentation, there is a reset button in Metamask.


See also https://github.com/MetaMask/metamask-extension/issues/3479

  • 2
    The way to fix incorrect nonces is now: Settings -> Advanced -> Reset Account
    – Jesbus
    Apr 3 '19 at 15:05

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.