- Published on
How to Reset Dev Accounts in MetaMask
- Authors
- Name
- Yair Mark
- @yairmark
While deving a dApp you will inevitably make plenty changes. When using this with Ganache and MetaMask the chain and MetaMask will eventually end up out of sync. Some of the errors you may get in this situation are:
Error: the tx doesn't have the correct nonce. account has nonce of: 0 tx has nonce of: 2Contract YourContract not found on network ID: 5777Error: Unknown block number


Luckily fixing this is fairly easy by resetting these test accounts in MetaMask as follows:
- Click the little account circle

- Click
Advancedand then theReset Accountbutton

- In the dialogue that pops up click
Reset

The accounts should now be reset and whatever contract methods you were testing earlier should now work.