-
-
Notifications
You must be signed in to change notification settings - Fork 231
Fix/bridge status controller mobile hardware wallets #5931
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
base: main
Are you sure you want to change the base?
Fix/bridge status controller mobile hardware wallets #5931
Conversation
); | ||
} else { | ||
// For hardware wallets on Mobile, this is fixes an issue where the Ledger does not get prompted for the 2nd approval | ||
if (requireApproval) { |
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.
I wonder what's causing the prompt for the second approval that get's fixed with a delay, this doens't seem ideal
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.
The issue I saw was that the 2nd Ledger confirmation modal gets dismissed for some reason if you don't delay
. I think it's an issue with navigation.
- 1st Ledger modal appears
- You confirm it on your Ledger
- 1st Ledger modal dismisses
- At or near the same time, you submit the 2nd tx
- 2nd Ledger modal appears for a split second
- 2nd Ledger modal gets dismissed almost immediately
You never see the confirmation prompt on the Ledger itself for the 2nd tx
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.
I can leave a comment in the code if you would like as well
Explanation
This PR fixes an issue with Mobile and hardware wallets and EVM bridge transactions.
References
Mobile implementation of patch branch: MetaMask/metamask-mobile#15751
Related to patch branch: https://github.com/MetaMask/core/compare/%40metamask/bridge-status-controller%4025.0.0...patch/%40metamask/bridge-status-controller%4025.0.0-mobile-hardware-wallet?expand=1
Changelog
Checklist