Skip to content

chore(runway): cherry-pick fix(ledger-mv3-bridge): cp-12.18.0 return response.success when payload is undefined #32426

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

Merged
merged 1 commit into from
Apr 30, 2025

Conversation

runway-github[bot]
Copy link
Contributor

@runway-github runway-github bot commented Apr 30, 2025

Description

Ledger MV3 bridge consumers are expecting attemptMakeApp and
updateLedgerTransport to return true when the operation is
successful, even if no error was thrown. This PR changes the
#sendMessage method to return the response.success value if
response.payload is undefined.

Open in GitHub Codespaces

Related issues

Fixes: #32319

Manual testing steps

  1. Pair a Ledger account
  2. Go to https://metamask.github.io/test-dapp/
  3. Connect the wallet
  4. Sign a typed message with the Ledger account
  5. The "connect" button should be enabled

Screenshots/Recordings

Before

20250430_14h06m06s_grim

After

20250430_14h05m42s_grim

Pre-merge author checklist

Pre-merge reviewer checklist

  • I've manually tested the PR (e.g. pull and build branch, run the
    app, test code being changed).
  • 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. d7be1c5

…`response.success` when payload is undefined (#32411)

<!--
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**

<!--
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?
-->
Ledger MV3 bridge consumers are expecting `attemptMakeApp` and
`updateLedgerTransport` to return `true` when the operation is
successful, even if no error was thrown. This PR changes the
`#sendMessage` method to return the `response.success` value if
`response.payload` is `undefined`.

[![Open in GitHub
Codespaces](https://github.com/codespaces/badge.svg)](https://codespaces.new/MetaMask/metamask-extension/pull/32411?quickstart=1)

## **Related issues**

Fixes: #32319

## **Manual testing steps**

1. Pair a Ledger account
2. Go to https://metamask.github.io/test-dapp/
3. Connect the wallet
4. Sign a typed message with the Ledger account
5. The "connect" button should be enabled

## **Screenshots/Recordings**

<!-- If applicable, add screenshots and/or recordings to visualize the
before and after of your change. -->

### **Before**

<!-- [screenshots/recordings] -->

![20250430_14h06m06s_grim](https://github.com/user-attachments/assets/564a7368-6f68-49ad-8435-22a77665534f)

### **After**

<!-- [screenshots/recordings] -->

![20250430_14h05m42s_grim](https://github.com/user-attachments/assets/9968ba17-4cc8-4127-a00d-a55159d61b8e)

## **Pre-merge author checklist**

- [ ] I've followed [MetaMask Contributor
Docs](https://github.com/MetaMask/contributor-docs) and [MetaMask
Extension Coding
Standards](https://github.com/MetaMask/metamask-extension/blob/main/.github/guidelines/CODING_GUIDELINES.md).
- [ ] I've completed the PR template to the best of my ability
- [ ] I’ve included tests if applicable
- [ ] I’ve documented my code using [JSDoc](https://jsdoc.app/) format
if applicable
- [ ] I’ve applied the right labels on the PR (see [labeling
guidelines](https://github.com/MetaMask/metamask-extension/blob/main/.github/guidelines/LABELING_GUIDELINES.md)).
Not required for external contributors.

## **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.
@metamaskbot metamaskbot added the team-runway-bot Runway bot team (for Runway Bot) label Apr 30, 2025
@metamaskbot
Copy link
Collaborator

Builds ready [a8e0cb5]
UI Startup Metrics (1189 ± 62 ms)
PlatformBuildTypePageMetricMean (ms)Min (ms)Max (ms)Std Dev (ms)P 75 (ms)P 95 (ms)
ChromeBrowserifyHomeuiStartup1189108515146212271278
load102989212905610561124
domContentLoaded102388612875610471113
domInteractive181464101627
firstPaint69179112540210331094
backgroundConnect7421279
firstReactRender22156892142
getState1353581728
initialActions001000
loadScripts788664104455811874
setupStore85213813
WebpackHomeuiStartup20701697243817121752349
load16071290198813817211782
domContentLoaded16011283198413717151779
domInteractive15114991342
firstPaint1736234661214275
backgroundConnect279335342663
firstReactRender19155419120327356
getState134252251129
initialActions316135
loadScripts15961280196013717111777
setupStore1674572030
FirefoxBrowserifyHomeuiStartup13371150171511913771619
load11971008159212212531488
domContentLoaded11971008159212212531488
domInteractive1043724334113176
firstPaintNaNNaNNaNNaNNaNNaN
backgroundConnect2213232232043
firstReactRender22195452226
getState74293710
initialActions001001
loadScripts1177995158012112261465
setupStore63324611
WebpackHomeuiStartup15501376213516816431891
load13311180190814714031659
domContentLoaded13301180190714714021659
domInteractive86502382993136
firstPaintNaNNaNNaNNaNNaNNaN
backgroundConnect23158792436
firstReactRender36285453946
getState124286281030
initialActions002111
loadScripts13091162185414413841632
setupStore95616913
Benchmark value 1632 exceeds gate value 1630 for firefox webpack home p95 loadScripts
Sum of mean exceeds: 0ms | Sum of p95 exceeds: 2ms
Sum of all benchmark exceeds: 2ms

@DDDDDanica DDDDDanica merged commit 6d95282 into Version-v12.18.0 Apr 30, 2025
165 of 166 checks passed
@DDDDDanica DDDDDanica deleted the runway-cherry-pick-12.18.0-1746032392 branch April 30, 2025 19:12
@github-actions github-actions bot locked and limited conversation to collaborators Apr 30, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
team-runway-bot Runway bot team (for Runway Bot)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants