MetaMask / MetaMask/metamask-extension

[Bug]: Nonce - Setting a higher nonce leaves MetaMask load indefinitely in localhost network

Open
#21,259 5 comments 0 reactions 0 assignees View on GitHub
INVALID-ISSUE-TEMPLATE regression-prod-* Sev2-normal team-confirmations Transactions type-bug
Dominant language
TypeScript
Stars
13.2k
Forks
5.6k
Avg merge
2d 5h
Merged PRs (30d)
451

Description

**Describe the bug**

**Problem**: whenever I perform a transaction on localhost, but set the custom nonce to a higher value than expected, when I submit that transaction, MetaMask stays loading indefinitely.

**Expected behavior**

MetaMask should land into the home page, without loading indefinitely and transaction should stay pending

**Screenshots**

https://github.com/MetaMask/metamask-extension/assets/54408225/885e266c-eee9-471a-9541-aeb95e783c9b

**Steps to reproduce**

1. Set Ganache server locally
2. Add Ganache network to MetaMask
3. Initiate a Send transaction
4. Change the custom nonce to a higher value than expected
5. Submit the transaction
6. MM stays loading indefinitely

**Version**

11.1.1 prod

**Build type**

None

**Browser**

Chrome

**Operating system**

Linux

Contributor guide

Open the contributing guide

Research direction

Start by reproducing the issue with a local Ganache network in Chrome, following the six reported steps and using a nonce higher than expected. Confirm that MetaMask returns to the home page while the transaction remains pending instead of loading indefinitely.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript
Domain
blockchain, frontend
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.