Skip to content

Commit

Permalink
Merge pull request #229 from blocknative/develop
Browse files Browse the repository at this point in the history
Release 1.3.3
  • Loading branch information
lnbc1QWFyb24 authored Mar 5, 2020
2 parents cdf22cc + a39a510 commit d6323b8
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "bnc-onboard",
"version": "1.3.2",
"version": "1.3.3",
"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.",
"keywords": [
"ethereum",
Expand Down
4 changes: 2 additions & 2 deletions src/modules/select/wallets/ledger.ts
Original file line number Diff line number Diff line change
Expand Up @@ -148,12 +148,12 @@ async function ledgerProvider(options: {

if (numberToGet > 1) {
for (
let i = addressesAlreadyFetched;
let i = addressesAlreadyFetched > 1 ? addressesAlreadyFetched : 0;
i < numberToGet + addressesAlreadyFetched;
i++
) {
const ledgerLive = `${basePath}/${i}'/0/0`
const legacy = `${basePath}/0'/${i}'`
const legacy = `${basePath}/0'/${i}`

paths.push(ledgerLive, legacy)
}
Expand Down
4 changes: 2 additions & 2 deletions src/modules/select/wallets/trezor.ts
Original file line number Diff line number Diff line change
Expand Up @@ -166,11 +166,11 @@ async function trezorProvider(options: {
}

for (
let i = addressesAlreadyFetched;
let i = addressesAlreadyFetched > 1 ? addressesAlreadyFetched : 0;
i < accountsToGet + addressesAlreadyFetched;
i++
) {
const path = `${basePath}/${i}'/0/0`
const path = `${basePath}/0'/0/${i}`
bundle.push({ path, showOnTrezor: false })
}

Expand Down

0 comments on commit d6323b8

Please sign in to comment.