How to fix discrepancy in transaction nonce after Hedera Testnet reset?

129 views Asked by At

Prior to the Testnet reset, the transaction nonce on an EVM account was being picked up correctly.

However, after the Testnet reset, there is a discrepancy:

  • eth_getTransactionCount(address, 'latest') returns a low number (0 before sending my first transaction after the reset)
  • eth_getTransactionCount(address, 'pending') returns a high number (140 in my case, which probably was the nonce prior to the reset)

(Using a DApp, connected through Metamask)

1

There are 1 answers

0
bguiz On BEST ANSWER

Metamask caches the transaction nonce for accounts.

Therefore after the reset, you need to clear its cache. To do so:

Metamask --> Settings --> Clear activity tab data

enter image description here

After this, your nonce should reset to 0, and the eth_getTransactionCount discrepancy should stop happening.