-
-
Notifications
You must be signed in to change notification settings - Fork 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: fix/1723 broken sign verification on test dapp #9627
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. |
Will run E2E on release branch |
I have tried testing this PR locally, and it does not appear to work. However I did confirm that #9521 seems to introduce the problem. |
…mask-mobile into fix/lowercase-eth-accounts
Bitrise✅✅✅ Commit hash: bc38117 Note
|
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## release/7.23.0 #9627 +/- ##
=================================================
Coverage ? 46.11%
=================================================
Files ? 1339
Lines ? 32665
Branches ? 3475
=================================================
Hits ? 15062
Misses ? 16679
Partials ? 924 ☔ View full report in Codecov by Sentry. |
Quality Gate passedIssues Measures |
Should we target main and then cherry pick it to the release? |
Closing in favor of #9656 |
Description
The PR that introduced permission controller middleware #9521, broke verifying personal sign on the test dapp. This PR resolves a few areas in the app that needed to use lowercased account addresses. Another note: Since permission middleware now handles
eth_accounts
, we migrated a condition to use the correct origin based on SDK, WC, or dapp in theBackgroundBridge
. This code is a temporary fix and should be refactored in the future. To keep this PR smaller, we can follow up with removingeth_accounts
from RPCMethodMiddleware in another PR.Related issues
Fixes: #1723, https://app.zenhub.com/workspaces/mobile-release-testing-6249e5242464b70013315a98/issues/gh/metamask/metamask-mobile/9628
Manual testing steps
Before fix:
After fix:
Screenshots/Recordings
Before
broken-sign.mov
After
Signing verification works even after switching accounts
https://github.com/MetaMask/metamask-mobile/assets/10508597/5c43af3b-7c9f-456b-a870-a5345027642b
WC connects and is able to trigger a transaction
RPReplay_Final1715841769.MP4
Pre-merge author checklist
Pre-merge reviewer checklist