Commit 3d1dee5
chore(runway): cherry-pick fix: 28589 resolve the ledger monad swap issue. cp-7.79.0 (#30755)
- fix: 28589 resolve the ledger monad swap issue. cp-7.79.0 (#29091)
<!--
Please submit this PR as a draft initially.
Do not mark it as "Ready for review" until the template has been
completely filled out, and PR status checks have passed at least once.
-->
## **Description**
Ledger hardware wallet users on Monad (and other chains / contracts
without a matching Ledger plugin) were hitting a misleading "blind
signing is not enabled" error when trying to complete gas-sponsored
swaps, even though blind signing was enabled on the device.
this PR will resolve the issue #28589 to use new
@metamask/eth-ledger-keyring-bridge`
<!--
Write a short description of the changes included in this pull request,
also include relevant motivation and context. Have in mind the following
questions:
1. What is the reason for the change?
2. What is the improvement/solution?
-->
## **Changelog**
<!--
If this PR is not End-User-Facing and should not show up in the
CHANGELOG, you can choose to either:
1. Write `CHANGELOG entry: null`
2. Label with `no-changelog`
If this PR is End-User-Facing, please write a short User-Facing
description in the past tense like:
`CHANGELOG entry: Added a new tab for users to see their NFTs`
`CHANGELOG entry: Fixed a bug that was causing some NFTs to flicker`
(This helps the Release Engineer do their job more quickly and
accurately)
-->
CHANGELOG entry: Fixed a misleading "blind signing is not enabled" error
preventing Ledger hardware wallet users from completing gas-sponsored
swaps on Monad and other chains without a matching Ledger plugin.
## **Related issues**
Fixes: #28589
## **Manual testing steps**
```gherkin
Feature: my feature name
Scenario: user [verb for user action]
Given [describe expected initial app state]
When user [verb for user action]
Then [describe expected outcome]
```
## **Screenshots/Recordings**
<!-- If applicable, add screenshots and/or recordings to visualize the
before and after of your change. -->
### **Before**
<!-- [screenshots/recordings] -->
### **After**
<!-- [screenshots/recordings] -->
## **Pre-merge author checklist**
- [x] I've followed [MetaMask Contributor
Docs](https://github.com/MetaMask/contributor-docs) and [MetaMask Mobile
Coding
Standards](https://github.com/MetaMask/metamask-mobile/blob/main/.github/guidelines/CODING_GUIDELINES.md).
- [x] I've completed the PR template to the best of my ability
- [x] I've included tests if applicable
- [x] I've documented my code using [JSDoc](https://jsdoc.app/) format
if applicable
- [x] I've applied the right labels on the PR (see [labeling
guidelines](https://github.com/MetaMask/metamask-mobile/blob/main/.github/guidelines/LABELING_GUIDELINES.md)).
Not required for external contributors.
#### Performance checks (if applicable)
- [x] I've tested on Android
- Ideally on a mid-range device; emulator is acceptable
- [x] I've tested with a power user scenario
- Use these [power-user
SRPs](https://consensyssoftware.atlassian.net/wiki/spaces/TL1/pages/edit-v2/401401446401?draftShareId=9d77e1e1-4bdc-4be1-9ebb-ccd916988d93)
to import wallets with many accounts and tokens
- [x] I've instrumented key operations with Sentry traces for production
performance metrics
- See [`trace()`](/app/util/trace.ts) for usage and
[`addToken`](/app/components/Views/AddAsset/components/AddCustomToken/AddCustomToken.tsx#L274)
for an example
For performance guidelines and tooling, see the [Performance
Guide](https://consensyssoftware.atlassian.net/wiki/spaces/TL1/pages/400085549067/Performance+Guide+for+Engineers).
## **Pre-merge reviewer checklist**
- [x] I've manually tested the PR (e.g. pull and build branch, run the
app, test code being changed).
- [x] I confirm that this PR addresses all acceptance criteria described
in the ticket it closes and includes the necessary testing evidence such
as recordings and or screenshots.
<!-- CURSOR_SUMMARY -->
---
> [!NOTE]
> **Medium Risk**
> Changes only the Ledger hardware-wallet signing dependency path used
for transactions/swaps; no local code review surface beyond the version
bump.
>
> **Overview**
> Bumps **`@metamask/eth-ledger-bridge-keyring`** from `^12.0.2` to
**`^12.1.0`** (and refreshes **`yarn.lock`**) so Ledger signing uses the
updated bridge stack—**`@metamask/keyring-sdk` ^2.1.1**, explicit
**`@ledgerhq/hw-transport`**, and newer **`@ledgerhq/*`**
transport/device/error packages.
>
> There are **no app source changes**; behavior comes from the upgraded
package. The intent is to stop a false **“blind signing is not
enabled”** failure when Ledger users complete **gas-sponsored swaps on
Monad** (and similar chains without a matching Ledger plugin), as in
#28589.
>
> <sup>Reviewed by [Cursor Bugbot](https://cursor.com/bugbot) for commit
b7d5043. Bugbot is set up for automated
code reviews on this repo. Configure
[here](https://www.cursor.com/dashboard/bugbot).</sup>
<!-- /CURSOR_SUMMARY -->
---------
Co-authored-by: copilot-swe-agent[bot]
<198982749+Copilot@users.noreply.github.com>
[6fa3aa4](6fa3aa4)
Co-authored-by: Xiaoming Wang <7315988+dawnseeker8@users.noreply.github.com>
Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>1 parent d1b796e commit 3d1dee5
2 files changed
Lines changed: 43 additions & 18 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
271 | 271 | | |
272 | 272 | | |
273 | 273 | | |
274 | | - | |
| 274 | + | |
275 | 275 | | |
276 | 276 | | |
277 | 277 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7269 | 7269 | | |
7270 | 7270 | | |
7271 | 7271 | | |
7272 | | - | |
| 7272 | + | |
7273 | 7273 | | |
7274 | 7274 | | |
7275 | 7275 | | |
| |||
7281 | 7281 | | |
7282 | 7282 | | |
7283 | 7283 | | |
| 7284 | + | |
| 7285 | + | |
| 7286 | + | |
| 7287 | + | |
| 7288 | + | |
| 7289 | + | |
| 7290 | + | |
| 7291 | + | |
| 7292 | + | |
| 7293 | + | |
| 7294 | + | |
| 7295 | + | |
7284 | 7296 | | |
7285 | 7297 | | |
7286 | 7298 | | |
| |||
7308 | 7320 | | |
7309 | 7321 | | |
7310 | 7322 | | |
7311 | | - | |
7312 | | - | |
7313 | | - | |
7314 | | - | |
| 7323 | + | |
| 7324 | + | |
| 7325 | + | |
| 7326 | + | |
7315 | 7327 | | |
7316 | 7328 | | |
7317 | 7329 | | |
| |||
7374 | 7386 | | |
7375 | 7387 | | |
7376 | 7388 | | |
7377 | | - | |
| 7389 | + | |
7378 | 7390 | | |
7379 | 7391 | | |
7380 | 7392 | | |
| |||
7386 | 7398 | | |
7387 | 7399 | | |
7388 | 7400 | | |
| 7401 | + | |
| 7402 | + | |
| 7403 | + | |
| 7404 | + | |
| 7405 | + | |
| 7406 | + | |
| 7407 | + | |
| 7408 | + | |
| 7409 | + | |
| 7410 | + | |
| 7411 | + | |
| 7412 | + | |
7389 | 7413 | | |
7390 | 7414 | | |
7391 | 7415 | | |
| |||
7396 | 7420 | | |
7397 | 7421 | | |
7398 | 7422 | | |
7399 | | - | |
7400 | | - | |
7401 | | - | |
7402 | | - | |
| 7423 | + | |
| 7424 | + | |
| 7425 | + | |
| 7426 | + | |
7403 | 7427 | | |
7404 | 7428 | | |
7405 | 7429 | | |
| |||
8411 | 8435 | | |
8412 | 8436 | | |
8413 | 8437 | | |
8414 | | - | |
8415 | | - | |
8416 | | - | |
| 8438 | + | |
| 8439 | + | |
| 8440 | + | |
8417 | 8441 | | |
8418 | 8442 | | |
8419 | 8443 | | |
8420 | 8444 | | |
8421 | 8445 | | |
| 8446 | + | |
8422 | 8447 | | |
8423 | 8448 | | |
8424 | 8449 | | |
8425 | | - | |
| 8450 | + | |
8426 | 8451 | | |
8427 | | - | |
| 8452 | + | |
8428 | 8453 | | |
8429 | 8454 | | |
8430 | 8455 | | |
| |||
8845 | 8870 | | |
8846 | 8871 | | |
8847 | 8872 | | |
8848 | | - | |
| 8873 | + | |
8849 | 8874 | | |
8850 | 8875 | | |
8851 | 8876 | | |
| |||
35246 | 35271 | | |
35247 | 35272 | | |
35248 | 35273 | | |
35249 | | - | |
| 35274 | + | |
35250 | 35275 | | |
35251 | 35276 | | |
35252 | 35277 | | |
| |||
0 commit comments