From 1a44f50ac755626407c4ed43dc215479f1f4e336 Mon Sep 17 00:00:00 2001 From: Christopher Jeffrey Date: Wed, 2 Nov 2016 17:53:34 -0700 Subject: [PATCH] walletkey: toJSON changes. --- lib/wallet/walletkey.js | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/lib/wallet/walletkey.js b/lib/wallet/walletkey.js index 6e7ee2fe..bc41f687 100644 --- a/lib/wallet/walletkey.js +++ b/lib/wallet/walletkey.js @@ -121,18 +121,18 @@ WalletKey.fromSecret = function fromSecret(data) { WalletKey.prototype.toJSON = function toJSON() { return { network: this.network.type, - witness: this.witness, - nested: this.nested, - publicKey: this.publicKey.toString('hex'), - script: this.script ? this.script.toRaw().toString('hex') : null, - program: this.program ? this.program.toRaw().toString('hex') : null, - type: constants.scriptTypesByVal[this.type].toLowerCase(), wid: this.wid, id: this.id, name: this.name, account: this.account, branch: this.branch, index: this.index, + witness: this.witness, + nested: this.nested, + publicKey: this.publicKey.toString('hex'), + script: this.script ? this.script.toRaw().toString('hex') : null, + program: this.program ? this.program.toRaw().toString('hex') : null, + type: constants.scriptTypesByVal[this.type].toLowerCase(), address: this.getAddress('base58') }; };