-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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: use hostname to fetch approvedhosts #7489
Conversation
CLA Signature Action: All authors have signed the CLA. You may need to manually re-run the blocking PR check if it doesn't pass in a few minutes. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Codecov ReportAttention:
Additional details and impacted files@@ Coverage Diff @@
## main #7489 +/- ##
=======================================
Coverage 34.60% 34.60%
=======================================
Files 1019 1019
Lines 27192 27193 +1
Branches 2212 2213 +1
=======================================
+ Hits 9409 9410 +1
Misses 17295 17295
Partials 488 488
☔ View full report in Codecov by Sentry. |
Kudos, SonarCloud Quality Gate passed! |
All good and working ✅ Screen.Recording.2023-10-17.at.18.28.06.mov |
Description
This PR fixes an Android SDK bug whereby:
metamask_accountsChanged
event so the SDK did not get selected account updated.This change implements the
getApprovedHosts
to fix this issue.Manual testing steps
_1. Have more than one address in your metamask account and select any address as active address
_2. Connect from Android Metamask SDK and ensure the active account is the selected address on the SDK
_3. Switch to another account on the wallet, and ensure that the SDK updates to the new address
Related issues
Fixes #???
Pre-merge author checklist
Pre-merge reviewer checklist