Skip to content

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

Open
wants to merge 5 commits into
base: main
Choose a base branch
from

Conversation

infiniteflower
Copy link
Contributor

@infiniteflower infiniteflower commented Jun 5, 2025

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

  • I've updated the test suite for new or updated code as appropriate
  • I've updated documentation (JSDoc, Markdown, etc.) for new or updated code as appropriate
  • I've communicated my changes to consumers by updating changelogs for packages I've changed, highlighting breaking changes as necessary
  • I've prepared draft pull requests for clients and consumer packages to resolve any breaking changes

@infiniteflower infiniteflower marked this pull request as ready for review June 5, 2025 22:32
@infiniteflower infiniteflower requested review from a team as code owners June 5, 2025 22:32
);
} else {
// For hardware wallets on Mobile, this is fixes an issue where the Ledger does not get prompted for the 2nd approval
if (requireApproval) {
Copy link
Contributor

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

Copy link
Contributor Author

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.

  1. 1st Ledger modal appears
  2. You confirm it on your Ledger
  3. 1st Ledger modal dismisses
  4. At or near the same time, you submit the 2nd tx
  5. 2nd Ledger modal appears for a split second
  6. 2nd Ledger modal gets dismissed almost immediately

You never see the confirmation prompt on the Ledger itself for the 2nd tx

Copy link
Contributor Author

@infiniteflower infiniteflower Jun 6, 2025

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

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