MetaMask / metamask-extension

:globe_with_meridians: :electric_plug: The MetaMask browser extension enables browsing Ethereum blockchain enabled websites
https://metamask.io
Other
11.83k stars 4.83k forks source link

testchain state caching issue, (e.g. nonce on ganache) #2632

Closed kumavis closed 6 years ago

kumavis commented 6 years ago

I dunno if anyone has mentioned this or not, but when using Ganache with Metamask, and you restart Ganache it doesn’t seem like MetaMask picks up on that and the cache of the user’s nonce is still being referenced which voids the transaction because the nonce on Ganache has now reset back to 0 — does that make sense? I can go into more detail and file an official issue in github if needed — just checking to see before I do

known but i couldnt find a relevant gh issue

this was fixed for testrpc previously so it might work as well

kumavis commented 6 years ago

i reccomend testing client version string for ganache/testrpc via eth json rpc using websockets may help put a lifecycle on testnet caches

danfinlay commented 6 years ago

Kindof a duplicate of #1999. I already have a pending fix for this.