Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: MetaMask browser app crash on wallet change #868

Merged
merged 1 commit into from
Oct 13, 2023

Conversation

dohaki
Copy link
Contributor

@dohaki dohaki commented Oct 12, 2023

Fixes ACX-1532

When changing the account in the MetaMask mobile browser, the wallet.accounts array is empty for a short period of time. This led to a fatal crash of the app.

@linear
Copy link

linear bot commented Oct 12, 2023

ACX-1532 Change Wallets - error "something went wrong" must reload to change

In MM browser, when you connect and change to a different wallet, the app shows this error

IMG_924E3094E5B5-1.jpeg

@vercel
Copy link

vercel bot commented Oct 12, 2023

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
frontend-v2 ✅ Ready (Inspect) Visit Preview 💬 Add feedback Oct 12, 2023 8:54am
goerli-frontend-v2 ✅ Ready (Inspect) Visit Preview 💬 Add feedback Oct 12, 2023 8:54am

Copy link
Contributor

@james-a-morris james-a-morris left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

AFAICT this is both resolving the fix & setting the failure message more accurately?

@dohaki
Copy link
Contributor Author

dohaki commented Oct 13, 2023

AFAICT this is both resolving the fix & setting the failure message more accurately?

@james-a-morris Yep, exactly!

Even though we have Sentry configured, a lot of browsers block requests to Sentry. So it's very hard to debug fatal crashes. By showing the error in the UI directly, we can have a bit more details from potentially provided screenshots

@dohaki dohaki requested a review from james-a-morris October 13, 2023 06:57
Copy link
Contributor

@james-a-morris james-a-morris left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Perfect. thanks @dohaki

@dohaki dohaki merged commit ee08d87 into master Oct 13, 2023
6 checks passed
@dohaki dohaki deleted the fix-mm-browser-wallet-change branch October 13, 2023 15:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants