From 4ca5ad3824637c91343a3f2d1c73b265cfcdf04d Mon Sep 17 00:00:00 2001 From: Christopher Jeffrey Date: Wed, 2 Nov 2016 00:50:22 -0700 Subject: [PATCH] http: fix get wallet tx for client. --- lib/http/client.js | 5 ++--- lib/http/wallet.js | 4 ++-- 2 files changed, 4 insertions(+), 5 deletions(-) diff --git a/lib/http/client.js b/lib/http/client.js index 3d5fc6f4..0bcea83d 100644 --- a/lib/http/client.js +++ b/lib/http/client.js @@ -537,9 +537,8 @@ HTTPClient.prototype.getRange = function getRange(id, account, options) { * @returns {Promise} - Returns {@link TX}[]. */ -HTTPClient.prototype.getWalletTX = function getWalletTX(id, account, hash) { - var options = { account: account }; - return this._get('/wallet/' + id + '/tx/' + hash, options); +HTTPClient.prototype.getWalletTX = function getWalletTX(id, hash) { + return this._get('/wallet/' + id + '/tx/' + hash); }; /** diff --git a/lib/http/wallet.js b/lib/http/wallet.js index 5520d2c6..e6493c83 100644 --- a/lib/http/wallet.js +++ b/lib/http/wallet.js @@ -188,8 +188,8 @@ HTTPWallet.prototype.getRange = function getRange(account, options) { * @see Wallet#getTX */ -HTTPWallet.prototype.getTX = function getTX(account, hash) { - return this.client.getWalletTX(this.id, account, hash); +HTTPWallet.prototype.getTX = function getTX(hash) { + return this.client.getWalletTX(this.id, hash); }; /**