Skip to content

Commit e8ea4fc

Browse files
authored
Merge pull request #438 from blocknative/develop
Release 1.13.2
2 parents 8120617 + f3d3d32 commit e8ea4fc

File tree

3 files changed

+7
-6
lines changed

3 files changed

+7
-6
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "bnc-onboard",
3-
"version": "1.13.1",
3+
"version": "1.13.2",
44
"description": "Onboard users to web3 by allowing them to select a wallet, get that wallet ready to transact and have access to synced wallet state.",
55
"keywords": [
66
"ethereum",

src/modules/select/wallets/providerEngine.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,8 @@ function createProvider(config: any) {
3838
provider.addProvider(rpcSubProvider)
3939
provider.start()
4040

41+
provider.on('error', console.error)
42+
4143
return provider
4244
}
4345

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)