MetaMask / MetaMask/metamask-extension

[Bug]: Incorrect error message for low nonce transaction on popular networks

Open
#27,081 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Bugs---Low-Priority INVALID-ISSUE-TEMPLATE regression-prod-12.2.2 Sev3-low stale team-confirmations type-bug
Dominant language
TypeScript
Stars
13.2k
Forks
5.6k
Avg merge
2d 5h
Merged PRs (30d)
451

Description

**Describe the bug**

Low nonce transaction fails with incorrect error message for popular networks. Ethereum and Sepolia display correct `Transaction 0 failed! nonce too low:next nonce ***, tx nonce ***`. Message on Linea Mainnet is `Transaction 2 failed! Nonce too low`, other networks show `Transaction 12 failed! Internal JSON-RPC error.`.

**Expected behavior**

Correct error message consistent across different networks

**Screenshots/Recordings**

Ethereum, Sepolia:

ethMainnet

Linea:

linea

Popular networks:

popular

**Steps to reproduce**

1. Start low nonce transaction

**Detection stage**

In production (default)

**Version**

12.2.2

**Build type**

None

**Browser**

Chrome, Firefox

**Operating system**

MacOS

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reproducing the low-nonce transaction described in the issue on Ethereum, Sepolia, Linea Mainnet, and the other affected networks, comparing the returned error messages. Trace the transaction failure handling from that entry point and define done as presenting a consistent low-nonce message across the networks.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript
Domain
blockchain
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.