fix: speed up and cancel for qr wallets. cp-7.80.0#30990
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. |
There was a problem hiding this comment.
Cursor Bugbot has reviewed your changes and found 1 potential issue.
❌ Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, have a team admin enable autofix in the Cursor dashboard.
Reviewed by Cursor Bugbot for commit cf6a867. Configure here.
🔍 Smart E2E Test Selection
click to see 🤖 AI reasoning detailsE2E Test Selection: Performance Test Selection: |
ccharly
left a comment
There was a problem hiding this comment.
Code LGTM (not tested, but there are recording)
|
Tested using android build from here workflow triggered using this branch with the fix. Fix works for Speed up and Cancel. Speed.up.QR.wallet.fix.mp4Cancel.transaction.mp4 |
|
Not sure why it does not show properly, but SonarCloud is failing because we miss some coverage: {"status":"ERROR","metricKey":"new_coverage","comparator":"LT","periodIndex":1,"errorThreshold":"80","actualValue":"74.1"}Given it's an RC blocker, I think we can skip it! |

Description
This PR fixes the speed up and cancel for qr wallets.
Changelog
CHANGELOG entry: fix speedup and cancel for qr wallets.
Related issues
Fixes: #30939
Manual testing steps
Screenshots/Recordings
Before
After
Screen_Recording_20260603_184445_MetaMask.mp4
Screen_Recording_20260603_184658_MetaMask.mp4
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
Note
Medium Risk
Changes pending-transaction replacement and gas submission for QR hardware accounts; behavior is aligned with existing Ledger paths and covered by new tests, but mistakes could affect broadcast or user funds timing.
Overview
QR hardware wallets can speed up and cancel pending transactions the same way Ledger accounts do: after gas confirmation, the app opens the QR signing modal instead of calling the transaction controller directly.
QRSigningTransactionModalnow accepts optionalsignMode(speedup/cancel) andgasValues. On open it runsspeedUpTransactionorstopTransactionfor those modes, and still usesApprovalController.acceptRequestfor normal QR signing. Speed-up/cancel failures show the shared transaction-update error toast; approval failures do not.The legacy Transactions list and UnifiedTransactionsView (
useUnifiedTxActions) branch on QR keyring accounts and navigate with the new params, then close the gas modal without invoking in-app speed-up/cancel. Tests cover modal error handling and both entry points.Reviewed by Cursor Bugbot for commit 2b18b8a. Bugbot is set up for automated code reviews on this repo. Configure here.