Skip to content

Commit

Permalink
Fixed issue where invalid BIP 32 Extended Public Key was generated fo…
Browse files Browse the repository at this point in the history
…r extPub generation when it should not have been.
  • Loading branch information
tboydston committed Jun 22, 2021
1 parent 964a1d0 commit 84276d6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion hdAddressGenerator.js
Original file line number Diff line number Diff line change
Expand Up @@ -246,7 +246,7 @@ class AddressGenerator {
this.bip32RootKeyRaw = bip32.fromBase58(this.xpub)
}

this.bip32RootKey = this.bip32RootKeyRaw.toBase58()
this.bip32RootKey = ( this.xpub === false ) ? this.bip32RootKeyRaw.toBase58() : ''

if ( this.bip != 32 && this.bip != 141 ){

Expand Down

0 comments on commit 84276d6

Please sign in to comment.