File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -68,8 +68,8 @@ function toBitcoinJS () {
6868 return Object . assign ( { } , this , {
6969 messagePrefix : this . versions . messagePrefix || ( '\x19' + this . versions . name + ' Signed Message:\n' ) ,
7070 bip32 : {
71- public : this . versions . bip32 . public ,
72- private : this . versions . bip32 . private
71+ public : ( this . versions . bip32 || { } ) . public ,
72+ private : ( this . versions . bip32 || { } ) . private
7373 } ,
7474 pubKeyHash : this . versions . public ,
7575 scriptHash : this . versions . scripthash ,
@@ -90,8 +90,8 @@ function toBitcore () {
9090 pubkeyhash : this . versions . public ,
9191 privatekey : this . versions . private ,
9292 scripthash : this . versions . scripthash ,
93- xpubkey : this . versions . bip32 . public ,
94- xprivkey : this . versions . bip32 . private ,
93+ xpubkey : ( this . versions . bip32 || { } ) . public ,
94+ xprivkey : ( this . versions . bip32 || { } ) . private ,
9595 networkMagic : nm ,
9696 port : this . port ,
9797 dnsSeeds : this . seedsDns || [ ]
You can’t perform that action at this time.
0 commit comments