MetaMask / MetaMask/metamask-extension
[Bug]: The cancel transaction button is disabled when sending testnet funds whilst having no mainnet funds
- Dominant language
- TypeScript
- Stars
- 13.2k
- Forks
- 5.6k
- Avg merge
- 2d 5h
- Merged PRs (30d)
- 451
Description
**Describe the bug**
When sending Sepolia testnet funds without having any mainnet funds, signing the transaction the "Cancel" button is disabled with pop up "Not enough gas", even though the user has enough gas in Sepolia to cancel the transaction.
**Expected result:**
The user should be able to cancel the transaction.
**Actual result:**
The "Cancel" button is disabled with pop up "Not enough gas", even though the user has enough gas to cancel the transaction.
**Environment:**
Device: MacBook Pro M4 ; macOS Tahoe 26.2
Chrome version: 144
MM prod v13.17.0 build: 95fabb3
**Screenshots/Recordings**
https://github.com/user-attachments/assets/929bad64-e7ad-474f-9c18-47216e59a369
**Steps to reproduce**
- connect MM
- Ensure to be on 'All popular tokens' rather than going into Sepolia network
- Send Sepolia ETH from an account without any other mainnet funds, so you will see 'Fund your wallet' on tokens page
- Submit txn
- try to click the "cancel" button on the transaction
- notice the text on hover: Not Enough gas
**Error messages or log output**
```shell
```
**Where was this bug found?**
Internal release testing
**Version**
13.17.0
**Build type**
None
**Browser**
Chrome, Firefox
**Operating system**
MacOS
**Severity**
sev3
Contributor guide
Research direction
Start by reproducing the transaction flow in the listed environment: use All popular tokens, send Sepolia ETH from an account with no mainnet funds, and try to cancel the submitted transaction. Trace the UI logic behind the disabled Cancel button and the “Not enough gas” message. Done means cancellation is available when the account has enough Sepolia gas, with coverage for this testnet-only balance scenario.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- typescript
- Domain
- blockchain, frontend
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 45/100