You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Extension now relies on TransactionController approval-time callbacks (isSponsored and shouldSign) instead of imperatively preparing approval metadata in the confirmation screen.
The confirmation UI still owns capability discovery and all client-specific behavior: Money Account withdrawal preparation, custom nonces, swap enrichment, Shield navigation, hardware signing navigation, gas-fee-token batch construction, and updateAndApproveTx dispatch. The controller now derives external signing internally, so the client no longer needs to mutate isExternalSign before approval.
Characterization coverage was updated for sponsored Smart Transactions, gas-fee-token flows, hardware sendBundle routing, and Money Account withdrawal.
Validation
npx jest --no-watchman ui/pages/confirmations/hooks/transactions/useTransactionConfirm.test.ts app/scripts/lib/transaction/hooks/index.test.ts
pedronfigueiredo
changed the title
refactor(confirmations): use canonical transaction approval preparation
refactor(confirmations): use approval callbacks instead of prep mutations
Sep 9, 2026
Bundle size diffs [🚨 Warning! Bundle size has increased!]
background: 51.5 KiB (0.35%)
ui: -58.99 KiB (-0.31%)
common: 0 Bytes (0%)
other: 1.97 KiB (0.1%)
contentScripts: 784 Bytes (0.04%)
zip: 3.58 KiB (0.02%)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Related pull requests
Description
Extension now relies on TransactionController approval-time callbacks (
isSponsoredandshouldSign) instead of imperatively preparing approval metadata in the confirmation screen.The confirmation UI still owns capability discovery and all client-specific behavior: Money Account withdrawal preparation, custom nonces, swap enrichment, Shield navigation, hardware signing navigation, gas-fee-token batch construction, and
updateAndApproveTxdispatch. The controller now derives external signing internally, so the client no longer needs to mutateisExternalSignbefore approval.Characterization coverage was updated for sponsored Smart Transactions, gas-fee-token flows, hardware sendBundle routing, and Money Account withdrawal.
Validation
npx jest --no-watchman ui/pages/confirmations/hooks/transactions/useTransactionConfirm.test.ts app/scripts/lib/transaction/hooks/index.test.ts