Skip to content
This repository has been archived by the owner on Feb 26, 2024. It is now read-only.

ganache closed and reopen, the block height reset to zero, continue transactions failed #437

Closed
3for opened this issue Mar 20, 2018 · 1 comment

Comments

@3for
Copy link

3for commented Mar 20, 2018

I'm now following the website below to try to use truffle and ganache in windows 10:
http://truffleframework.com/tutorials/robust-smart-contracts-with-openzeppelin

  1. I install & open ganache to start the development network, the block height is zero;
  2. Using 'truffle migrate' to deploy the contracts on the development network successfully, the block height in ganache is 4;
  3. made a token transfer successfully, the block height in ganache is 5;
  4. close the ganache and reopen ganache, the block height is reset to zero!
  5. I redeploy the contracts,, the block height changed to 4;
  6. made a token transfer failed, for the height is not corresponding.("Error: the tx doesn't have the correct nonce. account has nonce of:4 tx has nonce of:5 at runCall")
    image

How can I fix this problem while using MetaMask to test?

@3for
Copy link
Author

3for commented Mar 20, 2018

Got fixed to reset the MetaMask account.
MetaMask/metamask-extension#3629

@3for 3for closed this as completed Mar 20, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant