Skip to content

Commit bcabbd5

Browse files
committed
Dynamically imports providerEngine per request.
Mirrors changes in #437
1 parent 8168336 commit bcabbd5

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/modules/select/wallets/lattice.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,5 @@
11
import { LatticeOptions, WalletModule, Helpers } from '../../../interfaces'
22
import latticeIcon from '../wallet-icons/icon-lattice'
3-
import createProvider from './providerEngine'
4-
5-
const BASE_PATH = "m/44'/60'/0'/0"
63

74
function lattice(
85
options: LatticeOptions & { networkId: number }
@@ -67,6 +64,9 @@ async function latticeProvider(options: {
6764
}) {
6865
const { default: EthLatticeKeyring } = await import('eth-lattice-keyring')
6966
const EthereumTx = await import('ethereumjs-tx')
67+
const { default: createProvider } = await import('./providerEngine')
68+
69+
const BASE_PATH = "m/44'/60'/0'/0"
7070

7171
const { networkId, appName, rpcUrl, BigNumber, networkName } = options
7272

0 commit comments

Comments
 (0)