Skip to content

Commit 9b710bc

Browse files
authored
Merge pull request #437 from blocknative/enhancement/trezor-code-split
Enhancement: Trezor code split
2 parents 80c562b + 7d5ba76 commit 9b710bc

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

src/modules/select/wallets/trezor.ts

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,6 @@
11
import { TrezorOptions, WalletModule, Helpers } from '../../../interfaces'
22
import trezorIcon from '../wallet-icons/icon-trezor'
33

4-
import createProvider from './providerEngine'
5-
import { generateAddresses, isValidPath } from './hd-wallet'
6-
7-
const TREZOR_DEFAULT_PATH = "m/44'/60'/0'/0"
8-
94
function trezor(options: TrezorOptions & { networkId: number }): WalletModule {
105
const {
116
rpcUrl,
@@ -79,9 +74,13 @@ async function trezorProvider(options: {
7974
const TrezorConnectLibrary = await import('trezor-connect')
8075
const EthereumTx = await import('ethereumjs-tx')
8176
const ethUtil = await import('ethereumjs-util')
77+
const { default: createProvider } = await import('./providerEngine')
78+
const { generateAddresses, isValidPath } = await import('./hd-wallet')
8279

8380
const { default: TrezorConnect, DEVICE_EVENT, DEVICE } = TrezorConnectLibrary
8481

82+
const TREZOR_DEFAULT_PATH = "m/44'/60'/0'/0"
83+
8584
const {
8685
networkId,
8786
email,

0 commit comments

Comments
 (0)