MetaMask Tutorial – Steps to Reset Nonce in MetaMask Wallet

metamasknonce

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.

Best Answer

Related Topic