dApp Launchpad
  • Introduction
    • About
    • Quickstart
  • Workflow
    • Frontend
    • Smart contracts
  • Commands
    • init
    • dev
    • deploy
    • list
      • scaffold-templates
    • generate
      • smart-contracts-config
  • Contributing
    • Building from source
    • Developing on local
    • Reporting bugs / Feature requests
  • FAQs
Powered by GitBook
On this page
  • Why does Metamask fail in sending transactions in dev environment with a nonce error?
  • Why does Metamask fail in sending transactions with a nonce error when using "reset on change" option in dev environment?

FAQs

Frequently asked questions

Last updated 1 year ago

Why does Metamask fail in sending transactions in dev environment with a nonce error?

Everytime the dev environment is started, a new local test chain is started. Metamask internally maintains a cache of "latest block number" and "account transaction nonce". Since every run of dev creates a new chain, it never matches with this cache.

To know how to clear the cache, .

Why does Metamask fail in sending transactions with a nonce error when using "reset on change" option in dev environment?

The reset on change option resets the blockchain on every code change. Metamask internally maintains a cache of "latest block number" and "account transaction nonce". After resetting the chain, the latest block number and account transaction nonce should go back to initial state as well, but Metamask does not update this cache on its own.

To know how to clear the cache, .

read this
read this