fix: breaking change from @metamask/transaction-controller regarding Ledger transactions#8932
Conversation
…er stop working, this will fix the issue.
|
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. |
|
|
No dependency changes detected. Learn more about Socket for GitHub ↗︎ 👍 No dependency changes detected in pull request |
…a lot of internal library upgrade This upgrade will see the impact to socket-security any improvement about the list
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #8932 +/- ##
=======================================
Coverage 43.74% 43.74%
=======================================
Files 1273 1273
Lines 31103 31103
Branches 3161 3161
=======================================
Hits 13606 13606
Misses 16684 16684
Partials 813 813 ☔ View full report in Codecov by Sentry. |
@metamask/transaction-controller regarding Ledger transactions
|
|
|
Smoke E2E tests passd in this link https://app.bitrise.io/app/be69d4368ee7e86d/pipelines/ae55294b-24d2-4b99-abd0-8a92bfe0bcce |
|
Lets have this QAed before merging @dawnseeker8 and @vivek-consensys |
|
@vivek-consensys please help to QA this one. |
|
Tested on iPhone 13 on iOS 17.3.1 and Samsung S21 on Android 13 using Bitrise build:- https://app.bitrise.io/app/be69d4368ee7e86d/pipelines/f2ffaaef-ee08-49db-822d-e29e96c3640b |



Description
After the TransactionController upgrade to 8.0.1, it use `@ethereumjs/tx: 4.2.0 version, this library have break change on tx.common class which drop function chainIdBN(), and the old version @ethereumjs/tx: 3.5.0 used in @consensys/ledgerhq-metamask-kering still use the old version of tx.common and deprecated chainIdBN() function in BaseTransaction.ts.
So to fix the issue in main branch, we need to upgrade @consensys/ledgerhq-metamask-kering to use @ethereumjs/tx: 4.2.0. and then upgrade
mainbranch to use latest@consensys/ledgerhq-metamask-kering.Related issues
Fixes: #8917
Manual testing steps
send funds screen ( please make sure PR #8930 merged to
mainbranch first)test-dapp send coin transacation
test-dapphttps://metamask.github.io/test-dappSend EIP 1559 Transaction.ledgerScreenshots/Recordings
Before
8917_iPhone.MP4
After
Screen_Recording_20240314_133247_MetaMask.mp4
Pre-merge author checklist
Pre-merge reviewer checklist