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

[Bug]: Fix selected account change issue during dapp connection

Open owencraston opened this issue 1 year ago • 3 comments

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

  1. download version 7.47.0 build number: 2696
  2. import or create a wallet
  3. ensure that you have multiple accounts. If not, create more accounts
  4. open the browser
  5. navigate to matcha.xyz
  6. click on connect
  7. select Metamask ETH
  8. an account list should appear
  9. click edit
  10. select more accounts to be selected
  11. you should be taken back to the dapp connection page with a list of accounts that are going to connect to that dapp
  12. click on a different account as your selected account
  13. notice the slow down
  14. click connect
  15. notice that the dapp loads forever
  16. navigate back to the home page
  17. notice that the account change has not propagated globally
  18. eventually the selected account change should occur globably
  19. navigate back to the browser with the dapp open
  20. try to reconnect
  21. 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

owencraston avatar Oct 10 '25 18:10 owencraston

Cannot reproduce with latest version. @owencraston Can you see if this is still an issue?

PatrykLucka avatar Dec 12 '25 11:12 PatrykLucka

Umable to reproduce as well. Closing

DostoevskysPiano avatar Jan 30 '26 14:01 DostoevskysPiano

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

github-actions[bot] avatar Jan 30 '26 14:01 github-actions[bot]