fix: batch sell submit not working cp-7.82.0#31654
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. |
|
Warning MetaMask internal reviewing guidelines:
|
🔍 Smart E2E Test Selection
click to see 🤖 AI reasoning detailsE2E Test Selection: Performance Test Selection: |
⚡ Performance Test Results
✅ All tests passed · 2 tests · 1 device 📱 Devices tested (1)Android: Google Pixel 8 Pro (v14.0) ✅ Passed Tests (2)
Branch: |
Description
Batch Sell submit was failing before any transaction reached the wallet or Activity tab.
BridgeStatusController.submitBatchSellcallsgenerateBatchId()from@metamask/transaction-controllerwhen building a batch-sell transaction batch, but Mobile had a Yarn resolution pinning@metamask/transaction-controllerto 67.0.0, which does not export that helper.generateBatchIdwas added in 67.1.0 (see upstream changelog), whilebridge-status-controlleralready depends on^67.1.0.This PR removes the stale
67.0.0resolution so the existing^67.1.0dependency resolves correctly. After the lockfile update, Batch Sell submit proceeds past controller submission and transactions appear in Activity as expected.Changelog
CHANGELOG entry: Fixed Batch Sell transactions not submitting due to a missing
generateBatchIdexport from an outdated@metamask/transaction-controllerresolution.Related issues
Fixes: #31666
Manual testing steps
Additional verification:
yarn installon a clean checkout and confirmnode_modules/@metamask/transaction-controllerresolves to 67.1.0 (not 67.0.0).generateBatchIdis exported from@metamask/transaction-controller(e.g. present indist/index.d.cts).Screenshots/Recordings
N/A — dependency/version fix only; no UI change. Manual testing evidence: Activity list showing Batch Sell transactions after submit, and Metro logs free of
generateBatchId is not a function.Before
N/A
After
Pre-merge author checklist
Performance checks (if applicable)
trace()for usage andaddTokenfor an exampleFor performance guidelines and tooling, see the Performance Guide.
Pre-merge reviewer checklist