Skip to content

Commit bd77d12

Browse files
committed
Fix import
1 parent 822fd3e commit bd77d12

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

src/modules/select/wallets/ledger.ts

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,7 @@ import createProvider from './providerEngine'
1010

1111
import TransportU2F from '@ledgerhq/hw-transport-u2f'
1212
import Eth from '@ledgerhq/hw-app-eth'
13-
import { Transaction } from 'ethereumjs-tx'
14-
15-
const EthereumTx = Transaction
13+
import * as EthereumTx from 'ethereumjs-tx'
1614

1715
function ledger(options: LedgerOptions & CommonWalletOptions): WalletModule {
1816
const { rpcUrl, networkId, preferred, label, iconSrc, svg } = options
@@ -252,7 +250,7 @@ async function ledgerProvider(options: {
252250
}
253251

254252
try {
255-
const transaction = new EthereumTx(transactionData, {
253+
const transaction = new EthereumTx.Transaction(transactionData, {
256254
chain: networkName(networkId)
257255
})
258256

0 commit comments

Comments
 (0)