diff --git a/src/background/service/keyring/eth-ledger-keyring.ts b/src/background/service/keyring/eth-ledger-keyring.ts index 225a0095b76..73d5bb64958 100644 --- a/src/background/service/keyring/eth-ledger-keyring.ts +++ b/src/background/service/keyring/eth-ledger-keyring.ts @@ -2,7 +2,7 @@ import * as ethUtil from 'ethereumjs-util'; import * as sigUtil from 'eth-sig-util'; import TransportWebHID from '@ledgerhq/hw-transport-webhid'; import Transport from '@ledgerhq/hw-transport'; -import LedgerEth from '@ledgerhq/hw-app-eth'; +import LedgerEth, { ledgerService } from '@ledgerhq/hw-app-eth'; import { is1559Tx } from '@/utils/transaction'; import { TransactionFactory, @@ -317,7 +317,12 @@ class LedgerBridgeKeyring { const hdPath = await this.unlockAccountByAddress(address); await this.makeApp(true); try { - const res = await this.app!.signTransaction(hdPath, rawTxHex); + const resolution = await ledgerService.resolveTransaction( + rawTxHex, + {}, + {} + ); + const res = await this.app!.signTransaction(hdPath, rawTxHex, resolution); const newOrMutatedTx = handleSigning(res); const valid = newOrMutatedTx.verifySignature(); if (valid) {