Skip to content

Commit 75d74b9

Browse files
authored
Merge pull request #222 from blocknative/develop
Release 1.3.1
2 parents 0c3f01a + fb036b6 commit 75d74b9

File tree

5 files changed

+7
-7
lines changed

5 files changed

+7
-7
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.3.0",
3+
"version": "1.3.1",
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/check/accounts.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,14 +5,14 @@ type AccountsAndBalances = Array<{ balance: string; address: string }>
55
function accountSelect(): WalletCheckModule | never {
66
let completed: boolean = false
77
let loadingAccounts: boolean = false
8-
let accountsAndBalances: AccountsAndBalances
8+
let accountsAndBalances: AccountsAndBalances = []
99

1010
return async (stateAndHelpers: StateAndHelpers) => {
1111
const { wallet, BigNumber, address, balance } = stateAndHelpers
1212
const { provider, type } = wallet
1313

1414
if (type === 'hardware' && !completed) {
15-
if (!accountsAndBalances && !loadingAccounts) {
15+
if (accountsAndBalances.length <= 1 && !loadingAccounts) {
1616
accountsAndBalances = [{ address, balance }]
1717
}
1818

src/modules/select/wallets/ledger.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -158,7 +158,7 @@ async function ledgerProvider(options: {
158158
paths.push(ledgerLive, legacy)
159159
}
160160
} else {
161-
paths.push(`${basePath}/0'/0`, `${basePath}/0'/0/0`)
161+
paths.push(`${basePath}/0'/0`)
162162
}
163163

164164
let transport

src/modules/select/wallets/torus.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
import Torus from '@toruslabs/torus-embed'
21
import { networkName } from '../../../utilities'
32
import {
43
TorusOptions,
@@ -27,6 +26,7 @@ function torus(options: TorusOptions & CommonWalletOptions): WalletModule {
2726
svg: svg || torusIcon,
2827
iconSrc,
2928
wallet: async () => {
29+
const { default: Torus } = await import('@toruslabs/torus-embed')
3030
const instance = new Torus({
3131
buttonPosition: buttonPosition // default: bottom-left
3232
})

src/modules/select/wallets/trust.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import { WalletModule, Helpers, CommonWalletOptions } from '../../../interfaces'
33

44
import trustIcon from '../wallet-icons/icon-trust'
55

6-
function trust(options: CommonWalletOptions): WalletModule {
6+
function trust (options: CommonWalletOptions): WalletModule {
77
const { preferred, label, iconSrc, svg } = options
88

99
return {
@@ -24,7 +24,7 @@ function trust(options: CommonWalletOptions): WalletModule {
2424
}
2525
},
2626
type: 'injected',
27-
link: `https://links.trustwalletapp.com/a/key_live_lfvIpVeI9TFWxPCqwU8rZnogFqhnzs4D?&event=openURL&url=${window.location.href}`,
27+
link: `https://link.trustwallet.com/open_url?coin_id=60&url=${window.location.href}`,
2828
installMessage: mobileWalletInstallMessage,
2929
mobile: true,
3030
preferred

0 commit comments

Comments
 (0)