metamask-mobile icon indicating copy to clipboard operation
metamask-mobile copied to clipboard

[Bug]: Non-EVM networks gets reset when changing account (not happening with EVMs)

Open racitores opened this issue 1 year ago • 6 comments

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 avatar Nov 21 '25 14:11 racitores

@racitores can you extend a bit for context?

aganglada avatar Nov 22 '25 08:11 aganglada

Moving to @MetaMask/accounts-framework as we would need to align this behaviour when users switch accounts

aganglada avatar Nov 24 '25 10:11 aganglada

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?

gantunesr avatar Dec 19 '25 00:12 gantunesr

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)

owencraston avatar Jan 23 '26 17:01 owencraston

Spoke with @Tlees-MMI and he agreed on the acceptance criteria stated above. He also agreed to take this work into his team.

owencraston avatar Jan 26 '26 17:01 owencraston

Closing, as this is outdated with the new homepage and now every account change resets the network filter.

PatrykLucka avatar Mar 20 '26 14:03 PatrykLucka