[Bug]: Fix selected account change issue during dapp connection
Describe the bug
Changing the selected account during dapp connection causes the dapp to load indefinitely. The account change is applied globally but takes a long time to reflect, resulting in an inability to connect to the dapp. Address this issue to improve performance and connection flow.
Issue created in Slack from a message.
Equivalent Jira issue: https://consensyssoftware.atlassian.net/browse/MUL-1155
Expected behavior
- the selected account change occurs quickly
- AND the dapp is able to connect
Screenshots/Recordings
https://github.com/user-attachments/assets/b3ff9a28-6f48-458f-9b29-8277605856c0
Steps to reproduce
- download version 7.47.0 build number: 2696
- import or create a wallet
- ensure that you have multiple accounts. If not, create more accounts
- open the browser
- navigate to matcha.xyz
- click on connect
- select Metamask ETH
- an account list should appear
- click edit
- select more accounts to be selected
- you should be taken back to the dapp connection page with a list of accounts that are going to connect to that dapp
- click on a different account as your selected account
- notice the slow down
- click connect
- notice that the dapp loads forever
- navigate back to the home page
- notice that the account change has not propagated globally
- eventually the selected account change should occur globably
- navigate back to the browser with the dapp open
- try to reconnect
- notice that you are unable to connect
Error messages or log output
Detection stage
During release testing
Version
7.47.0
Build type
None
Device
Pixel 6
Operating system
Android
Additional context
- I only tested android but its likely that this occurs on iOS as well
Cannot reproduce with latest version. @owencraston Can you see if this is still an issue?
Umable to reproduce as well. Closing
Hi @PatrykLucka, @owencraston,
This issue has been closed. Please complete this RCA form: https://docs.google.com/forms/d/e/1FAIpQLSeLOVVUy7mO1j-5Isb04OAWk3dM0b1NY1R8kf0tiEBs9elcEg/viewform?usp=pp_url&entry.1417567074=21061&entry.1470697156=regression-RC-7.47.0&entry.1198657478=team-mobile-ux&entry.1085838323=metamask-mobile&entry.516762472=https%3A%2F%2Fgithub.com%2FMetaMask%2Fmetamask-mobile%2Fissues%2F21061