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') }; };