fix: cp-7.66.0 refresh staked balance after account switch#26332
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. |
🔍 Smart E2E Test Selection
click to see 🤖 AI reasoning detailsE2E Test Selection: Impact Analysis:
Tag Selection Rationale:
Risk Assessment (Medium):
Performance Test Selection: |
|



Description
fix refresh staking balance after account switch
Changelog
CHANGELOG entry: fix refresh staking balance after account switch
Related issues
Fixes: #26323
Manual testing steps
Screenshots/Recordings
Before
before.mov
After
after-stake.mov
Pre-merge author checklist
Pre-merge reviewer checklist
Note
Medium Risk
Touches wallet balance refresh triggering, which could affect when/ how often balances are refreshed after navigation or account changes; test coverage reduces regression risk but performance/extra refreshes should be watched.
Overview
Ensures wallet balance refresh runs after an account switch by adding
selectedInternalAccountto the dependency list that triggersAccountTrackerController.refreshinWallet.Updates
Wallettests to cover the new refresh-on-account-change behavior (usingwaitForand a rerender with a differentAccountsController.internalAccounts.selectedAccount) and refreshes related snapshots.Written by Cursor Bugbot for commit c934537. This will update automatically on new commits. Configure here.