fix: cp-7.78.0 add isAtomicBatchSupported action to TransactionPayController init messenger#30425
Conversation
isAtomicBatchSupported action to TransactionPayController init messenger
🔍 Smart E2E Test Selection
click to see 🤖 AI reasoning detailsE2E Test Selection: Nature of change: Additive messenger configuration change (adding a new allowed action). Per the architecture skill, adding actions is "usually safe, extends functionality" - Medium risk. Impact areas:
Why not broader coverage: This is a targeted additive change to a specific controller's messenger configuration. It doesn't affect Phase 2 controllers (Network, Keyring), doesn't change initialization order, and doesn't remove any existing actions. The blast radius is limited to TransactionPayController's functionality domain. Performance Test Selection: |
isAtomicBatchSupported action to TransactionPayController init messengerisAtomicBatchSupported action to TransactionPayController init messenger
|



Description
Add
TransactionControllerIsAtomicBatchSupportedActionto theTransactionPayControllerInitmessenger. This enables the init messenger to delegate theTransactionController:isAtomicBatchSupportedaction, which is needed during controller initialization to check atomic batch support.Companion to MetaMask/metamask-extension#42809.
Changelog
CHANGELOG entry: null
Related issues
Fixes: #42781
Manual testing steps
yarn start:iosoryarn start:androidPre-merge author checklist
Pre-merge reviewer checklist
Note
Low Risk
Low risk: adds a single delegated messenger action used during initialization, with no changes to transaction execution or signing behavior.
Overview
Allows
TransactionPayControllerinitialization to query atomic batch capability by adding delegation forTransactionController:isAtomicBatchSupported.This extends
TransactionPayControllerInitmessenger types/imports to includeTransactionControllerIsAtomicBatchSupportedActionand delegates the new action viarootMessenger.delegate.Reviewed by Cursor Bugbot for commit b81e10b. Bugbot is set up for automated code reviews on this repo. Configure here.