feat: merge QR context with hardware wallet context#28807
feat: merge QR context with hardware wallet context#28807montelaidev wants to merge 12 commits intomainfrom
Conversation
Add QR signing context and hardware wallet integration, including new executeHardwareWalletOperation utility, useQRSigningState hook, and updated connection flow with improved error handling and tests.
|
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. |
Codecov Report❌ Patch coverage is Additional details and impacted files@@ Coverage Diff @@
## main #28807 +/- ##
==========================================
+ Coverage 82.19% 82.27% +0.08%
==========================================
Files 4987 5020 +33
Lines 131211 131816 +605
Branches 29316 29418 +102
==========================================
+ Hits 107843 108458 +615
- Misses 16017 16021 +4
+ Partials 7351 7337 -14 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
🔍 Smart E2E Test Selection
click to see 🤖 AI reasoning detailsE2E Test Selection:
No performance tests are needed as these changes are focused on hardware wallet UI flows and don't affect rendering performance, data loading, or app startup. Performance Test Selection: |
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 38f885f. Configure here.
|
|
✅ E2E Fixture Validation — Schema is up to date |




Description
This PR migrates the qr context into the hardware wallet providers.
Changelog
CHANGELOG entry: QR wallet context is migrated into Hardware wallet context.
Related issues
Related to: https://consensyssoftware.atlassian.net/browse/MUL-1507
Related to: https://consensyssoftware.atlassian.net/browse/MUL-1513
Resolves: https://consensyssoftware.atlassian.net/browse/MUL-1741
Manual testing steps
QR accounts should work like normal.
Screenshots/Recordings
Before
After
Pre-merge author checklist
Pre-merge reviewer checklist
Note
Medium Risk
Touches transaction signing/cancel/speed-up paths and shared hardware-wallet connection UX, so regressions could block hardware-wallet users from completing or rejecting transactions. Changes are well-covered by new/updated unit tests but span multiple critical flows.
Overview
Centralizes hardware-wallet transaction handling by introducing
executeHardwareWalletOperationand updating auto-signing + cancel/speed-up flows (inRootRPCMethodsUI,Transactions, anduseUnifiedTxActions) to use the shared readiness/awaiting-confirmation + rejection/error behavior instead of bespoke Ledger navigation.Moves QR signing state into the hardware wallet provider via a new
QRSigningContext/useQRSigningState, updates the awaiting-confirmation bottom-sheet content to render QR codes + scanner and to validate/resolve/reject QR signature scans, and extends gas replacement handling withnormalizeReplacementGasFeeParamsto avoid forwarding incomplete fee params.Reviewed by Cursor Bugbot for commit 38f885f. Bugbot is set up for automated code reviews on this repo. Configure here.