[Bug]: Non-EVM networks gets reset when changing account (not happening with EVMs)
Describe the bug
Non-EVM networks gets reset when changing account (not happening with EVMs)
https://www.loom.com/share/7497b11e021c4a5885f36befe73f3c58
Expected behavior
No response
Screenshots/Recordings
No response
Steps to reproduce
Check video
Error messages or log output
Detection stage
During release testing
Version
7.60.0
Build number
3111
Build type
None
Device
iPhone 14 Plus
Operating system
iOS
Additional context
No response
Severity
sev2
@racitores can you extend a bit for context?
Moving to @MetaMask/accounts-framework as we would need to align this behaviour when users switch accounts
I don't follow what is the bug @aganglada @racitores can some expand on what is the issue here? and what are the reproduction steps and expected behaviour?
Confirmed the issue. The issue is the following:
- if EVM network is selected, switching an account keeps the network settings the same 🟢
- If current network is non EVM (TRON, BTC, Solana), switching the network switches it to the last active EVM network. 🔴
Acceptance criteria:
- network selection should persist across all account changes IF the account is a multichain account.
- If the account you switch to is a non Multichain account (hardware wallet, private key), then the network filter should switch to the "All popular networks" as a default
- Ideally we look at the scope for each account to determine this instead of hardcoding
(if pk || hardware wallet) { select EVM network} - example:
- Account 1 is selected and the network is set to BNB Smart chain
- User switches to account 2
- the selected network should remain BNB Smart chain
- User selects Bitcoin as their preferred network
- User switches to account 3
- Bitcoin should remain as the selected network UNLESS the account is not a multichain account (private key or hardware wallet)
Spoke with @Tlees-MMI and he agreed on the acceptance criteria stated above. He also agreed to take this work into his team.
Closing, as this is outdated with the new homepage and now every account change resets the network filter.