minor keypair fix.
This commit is contained in:
parent
4a6c73fc8e
commit
173e133bf4
@ -37,8 +37,8 @@ function KeyPair(options) {
|
||||
if (options.pub)
|
||||
options.publicKey = options.pub;
|
||||
|
||||
if (options.key instanceof KeyPair)
|
||||
return options.key;
|
||||
if (options.pair instanceof KeyPair)
|
||||
return options.pair;
|
||||
|
||||
this.options = options;
|
||||
this.pair = null;
|
||||
|
||||
@ -796,7 +796,7 @@ Wallet.prototype.toJSON = function toJSON(encrypt) {
|
||||
keys: this.keys.map(function(key) {
|
||||
return key.xpubkey;
|
||||
}),
|
||||
balance: utils.toBTC(this.getBalance()),
|
||||
balance: utils.btc(this.getBalance()),
|
||||
tx: this.tx.toJSON()
|
||||
};
|
||||
};
|
||||
|
||||
Loading…
Reference in New Issue
Block a user