From 45d424470dd390264c855113e3e618e484bb4ab8 Mon Sep 17 00:00:00 2001 From: Christopher Jeffrey Date: Mon, 8 Aug 2016 13:19:38 -0700 Subject: [PATCH] rpc: fix tx details. --- lib/bcoin/http/rpc.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/bcoin/http/rpc.js b/lib/bcoin/http/rpc.js index 7348d108..8ab49ee3 100644 --- a/lib/bcoin/http/rpc.js +++ b/lib/bcoin/http/rpc.js @@ -2434,7 +2434,7 @@ RPC.prototype._toWalletTX = function _toWalletTX(tx, callback) { 'bip125-replaceable': 'no', details: [{ account: member.name, - address: member.address.toBase58(), + address: member.paths[0].address.toBase58(), category: receive ? 'receive' : 'send', amount: +utils.btc(member.value), label: member.name, @@ -2688,7 +2688,7 @@ RPC.prototype._toListTX = function _toListTX(tx, callback) { json = { account: member.name, - address: member.address.toBase58(), + address: member.paths[0].address.toBase58(), category: receive ? 'receive' : 'send', amount: +utils.btc(member.value), label: member.name,