-
Notifications
You must be signed in to change notification settings - Fork 5k
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: bump @metamask/eth-ledger-bridge-keyring
to ^8.0.3
to fix Ledger's handling of EIP-712 content
#29820
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. |
👍 Dependency issues cleared. Learn more about Socket for GitHub ↗︎ This PR previously contained dependency changes with security issues that have been resolved, removed, or ignored. |
@SocketSecurity ignore npm/[email protected] |
@metamaskbot update-policies |
Policies updated. 🧠 Learn how: https://lavamoat.github.io/guides/policy-diff/#what-to-look-for-when-reviewing-a-policy-diff |
Builds ready [745a410]
Page Load Metrics (1558 ± 88 ms)
Bundle size diffs [🚀 Bundle size reduced!]
|
…ve to confirmation dialog button always disabled for ledger.
Builds ready [53d360c]
Page Load Metrics (1486 ± 39 ms)
Bundle size diffs [🚨 Warning! Bundle size has increased!]
|
Tested locally and working as expected via clear signing dApp . Flows covered include:-
|
@metamaskbot update-policies |
Policies updated. 🧠 Learn how: https://lavamoat.github.io/guides/policy-diff/#what-to-look-for-when-reviewing-a-policy-diff |
Builds ready [ece2ef7]
Page Load Metrics (1784 ± 88 ms)
Bundle size diffs [🚀 Bundle size reduced!]
|
Updated dependencies detected. Learn more about Socket for GitHub ↗︎
|
Builds ready [ec7dfd2]
Page Load Metrics (1786 ± 91 ms)
Bundle size diffs [🚀 Bundle size reduced!]
|
@ledgerhq/hw-app-eth
to v6.42.0 to fix EIP-712 content ledger bug
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.
LGTM. Haven't tested myself since we already ran full non-regression testing on this PR.
@@ -4876,7 +4876,7 @@ export default class MetamaskController extends EventEmitter { | |||
|
|||
async attemptLedgerTransportCreation() { | |||
return await this.#withKeyringForDevice( | |||
HardwareDeviceNames.ledger, | |||
{ name: HardwareDeviceNames.ledger }, |
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.
For the next reviewer: Looks like this was missing on this function. All other functions that uses this.#withKeyringForDevice
were using "named parameters" already.
@@ -96,7 +96,7 @@ function setupMessageListeners(iframe: HTMLIFrameElement) { | |||
export default async function init() { | |||
return new Promise<void>((resolve) => { | |||
const iframe = document.createElement('iframe'); | |||
iframe.src = 'https://metamask.github.io/ledger-iframe-bridge/8.0.0/'; | |||
iframe.src = 'https://metamask.github.io/ledger-iframe-bridge/8.0.3/'; |
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.
For the next reviewer: The bridge version has to be aligned with the @metamask/eth-ledger-bridge-keyring
package version.
@ledgerhq/hw-app-eth
to v6.42.0 to fix EIP-712 content ledger bug@metamask/eth-ledger-bridge-keyring
to ^8.0.3
to fix Ledger's handling of EIP-712 content
Builds ready [e1abe95]
Page Load Metrics (1629 ± 40 ms)
Bundle size diffs [🚀 Bundle size reduced!]
|
Builds ready [de5104b]
Page Load Metrics (1604 ± 68 ms)
Bundle size diffs [🚀 Bundle size reduced!]
|
Builds ready [c3ee4f3]
Page Load Metrics (1539 ± 34 ms)
Bundle size diffs [🚀 Bundle size reduced!]
|
Description
Ledger team request us to upgrade the @ledgerhq/hw-app-eth to 6.42.0 to fix ledger bug for EIP-712 content
Here is some comment from Kevin LAMBERT from ledger team:
and this is original thread https://consensys.slack.com/archives/C02CYKAA8G1/p1737132760664329?thread_ts=1737106010.543919&cid=C02CYKAA8G1
Related issues
Fixes: #29813
Please also check the related PR on release 12.11
Manual testing steps
Will require a full regression test for ledger feature.
Screenshots/Recordings
Before
After
Pre-merge author checklist
Pre-merge reviewer checklist