Closed dkent600 closed 6 years ago
All you have to do is Reset your account in MetaMask, so I dont think this is something to worry about
@tibetsprague Does resetting cause imported accounts to go away?
no, it resets the transactions and nonce for the current account you have selected
ok, it works, thanks @tibetsprague! Steps:
The ganache command currently hardcodes the network id. This enables us to hardcode the address of the GEN token that is created at migration time. However, when running against MetaMask, this causes problems. MM caches a nonce value for every network id. The cached nonce value gets out-of-sync with ganache when restarting ganache, causing transactions to fail.
This also happens with ganacheDb, where having a constant network Id is unavoidable.
Thus we need to make optional the hardcoded network id in the ganache command. Turning it off causes the GEN token to be created at an unpredictable address, but it at least allows one to use MM against ganache.
Be sure to publically document this in arc.js and Vanille.