Skip to content

Commit

Permalink
fix(New HD Account): add space only if acct index > 0
Browse files Browse the repository at this point in the history
  • Loading branch information
plondon committed Jun 23, 2018
1 parent 10b0ef5 commit e2d9331
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/blockchain-wallet-v4/src/types/HDWallet.js
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ export const js = (label, mnemonic, xpub, nAccounts, network) => {
const masterNode = mnemonic ? Bitcoin.HDNode.fromSeedBuffer(seed, network) : undefined
const parentNode = mnemonic ? masterNode.deriveHardened(44).deriveHardened(0) : undefined
const node = i => mnemonic ? parentNode.deriveHardened(i) : undefined
const account = i => HDAccount.js(`${label} ${i > 0 ? i + 1 : ''}`, node(i), xpub)
const account = i => HDAccount.js(`${label}${i > 0 ? ` ${i + 1}` : ''}`, node(i), xpub)
return {
seed_hex: seedHex,
passphrase: '',
Expand Down

0 comments on commit e2d9331

Please sign in to comment.