fix: MUSD-771 updated selectAccountTokensAcrossChainsUnified to select tokens across chains for evm-scope specifically cp-7.76.0#29675
Conversation
…across chains for evm-scope specifically
|
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✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #29675 +/- ##
==========================================
- Coverage 81.84% 74.66% -7.19%
==========================================
Files 5244 5255 +11
Lines 138676 138982 +306
Branches 31462 31517 +55
==========================================
- Hits 113503 103765 -9738
- Misses 17450 27853 +10403
+ Partials 7723 7364 -359 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
…ed-staking-unstake-button
🔍 Smart E2E Test Selection
click to see 🤖 AI reasoning detailsE2E Test Selection: Impact analysis:
Dependent tags per descriptions:
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 d5602d9. Configure here.
|




Description
This PR fixes an app crash that occurs when the user clicks the "unstake" button (ETH pooled-staking) when non-evm network is selected.
Changelog
CHANGELOG entry: fixed app crash occurring when user clicked pooled-staking unstake button when non-evm network is selected.
Related issues
Fixes: MUSD-771: App Crash when user clicks pooled-staking "unstake" button
Manual testing steps
Screenshots/Recordings
Before
musd-771-unstake-button-crash-demo-before.mov
After
musd-771-unstake-button-crash-demo-after.mov
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
Medium risk because it changes how the unified multichain token selector chooses the EVM address, which can affect token lists and Earn flows across networks; however the change is localized and covered by updated unit tests/mocks.
Overview
Fixes a crash/empty-balance issue when a non-EVM network is active by making
selectAccountTokensAcrossChainsUnifiedalways derive EVM tokens from the EVM-scoped account in the selected account group, rather than whatever account is currently selected.Adds
selectAccountTokensAcrossChainsForEvmScope(usingselectSelectedInternalAccountByScope(EVM_SCOPE)+selectAccountTokensAcrossChainsForAddress) and updates multichain/Earn-related tests to mockselectSelectedInternalAccountByScopeand the new EVM-token selector signature.Reviewed by Cursor Bugbot for commit d5602d9. Bugbot is set up for automated code reviews on this repo. Configure here.