fix(confirmations): abort send deeplink when chain is missing - #34836
fix(confirmations): abort send deeplink when chain is missing#34836joaoloureirop wants to merge 1 commit into
Conversation
Throw instead of falling back to the selected network so a send deeplink cannot confirm on the wrong chain. Co-authored-by: Cursor <cursoragent@cursor.com>
|
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. |
🔍 Smart E2E Test Selection
click to see 🤖 AI reasoning detailsE2E Test Selection:
The other two changed files are unit tests validating these new behaviors. Impact assessment:
Why SmokeConfirmations: The deeplink utility is part of the transaction confirmation flow. Running SmokeConfirmations validates that normal transaction sending (where the network IS found) still works correctly after this refactor. The error path is covered by unit tests. No performance impact: These are logic/error-handling changes with no performance implications. Performance Test Selection: |
🧪 Flaky unit test detectionRun history flaky detectionHistorical failure rate is a hint, not proof — review each suggestion in context. See the flaky-test-detection skill for the full pattern reference and manual audit workflow. Failures / runs sampled per window:
AI-detected flaky patterns
|
|



Description
The redesigned send path fell back to the selected network when
findNetworkClientIdByChainIdfailed, so a send deeplink could open a confirmation on the wrong chain.getNetworkClientIdForChainIdnow throws when the requested chain is not in the wallet. The existing “network not found” alert is shown and no transaction is added.Changelog
CHANGELOG entry: Fixed send deeplinks using the wrong network when the requested chain is not in the wallet
Related issues
Fixes: #22847
Manual testing steps
Screenshots/Recordings
Before
N/A
After
N/A
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