File tree Expand file tree Collapse file tree 1 file changed +4
-5
lines changed
src/modules/select/wallets Expand file tree Collapse file tree 1 file changed +4
-5
lines changed Original file line number Diff line number Diff line change 1
1
import { TrezorOptions , WalletModule , Helpers } from '../../../interfaces'
2
2
import trezorIcon from '../wallet-icons/icon-trezor'
3
3
4
- import createProvider from './providerEngine'
5
- import { generateAddresses , isValidPath } from './hd-wallet'
6
-
7
- const TREZOR_DEFAULT_PATH = "m/44'/60'/0'/0"
8
-
9
4
function trezor ( options : TrezorOptions & { networkId : number } ) : WalletModule {
10
5
const {
11
6
rpcUrl,
@@ -79,9 +74,13 @@ async function trezorProvider(options: {
79
74
const TrezorConnectLibrary = await import ( 'trezor-connect' )
80
75
const EthereumTx = await import ( 'ethereumjs-tx' )
81
76
const ethUtil = await import ( 'ethereumjs-util' )
77
+ const { default : createProvider } = await import ( './providerEngine' )
78
+ const { generateAddresses, isValidPath } = await import ( './hd-wallet' )
82
79
83
80
const { default : TrezorConnect , DEVICE_EVENT , DEVICE } = TrezorConnectLibrary
84
81
82
+ const TREZOR_DEFAULT_PATH = "m/44'/60'/0'/0"
83
+
85
84
const {
86
85
networkId,
87
86
email,
You can’t perform that action at this time.
0 commit comments