fix(confirmations): allow cancel without gas pre-validation#43602
fix(confirmations): allow cancel without gas pre-validation#43602vinistevam wants to merge 7 commits into
Conversation
|
CLA Signature Action: All authors have signed the CLA. You may need to manually re-run the blocking PR check if it doesn't pass in a few minutes. |
✨ Files requiring CODEOWNER review ✨✅ @MetaMask/confirmations (2 files, +78 -5)
👨🔧 @MetaMask/core-extension-ux (6 files, +7 -12)
|
Builds ready [f85905e]
⚡ Performance Benchmarks (Total: 🟢 16 pass · 🟡 9 warn · 🔴 0 fail)
Bundle size diffs [🚀 Bundle size reduced!]
|
Builds ready [fca24d2] [reused from 6d36bdf]
⚡ Performance Benchmarks (Total: 🟢 13 pass · 🟡 7 warn · 🔴 0 fail)
Bundle size diffs [🚀 Bundle size reduced!]
|
Builds ready [5f5a9cc]
⚡ Performance Benchmarks (Total: 🟢 15 pass · 🟡 10 warn · 🔴 0 fail)
Bundle size diffs [🚀 Bundle size reduced!]
|
Builds ready [1bf0d47]
⚡ Performance Benchmarks (Total: 🟢 15 pass · 🟡 9 warn · 🔴 1 fail)
Bundle size diffs [🚀 Bundle size reduced!]
|
Builds ready [004778e]
⚡ Performance Benchmarks (Total: 🟢 15 pass · 🟡 10 warn · 🔴 0 fail)
Bundle size diffs [🚀 Bundle size reduced!]
|
Description
The Cancel button on a pending transaction was disabled with a "Not enough gas" tooltip when the balance dipped below the cancel gas fee, while Speed Up stayed enabled — even though both use the same gas estimate. The asymmetry was confusing and the validation only lived on the button: the Cancel/Speed Up modal had no gas check and would let users submit straight into a failure toast.
This PR makes the modal the single source of truth:
"Insufficient funds"(reusinginsufficientFundsSend, no new translations).transaction/detailsModalprops fromCancelButtonand its call sites, made redundant by the fix.Changelog
CHANGELOG entry: Fixed Cancel button being disabled by a "Not enough gas" check while Speed Up stayed enabled on pending transactions.
Related issues
Fixes: https://consensyssoftware.atlassian.net/browse/CONF-1299
Manual testing steps
price, or local Anvil with mining paused).
Cancel is still enabled; tapping it opens the modal with a
disabled Confirm button reading "Insufficient funds".
reads "Confirm" and submitting cancels the transaction.
Screenshots/Recordings
Screencast.from.2026-06-16.11-25-10.webm
Before
After
Pre-merge author checklist
Pre-merge reviewer checklist