From e27408dc5861a08da78527e71db923b192af1d5e Mon Sep 17 00:00:00 2001 From: Bucko Date: Tue, 19 Sep 2017 15:43:34 -0700 Subject: [PATCH] getCoin was unnecessarily passing account --- lib/http/client.js | 4 ++-- lib/http/wallet.js | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/lib/http/client.js b/lib/http/client.js index 02755134..5e8f3eea 100644 --- a/lib/http/client.js +++ b/lib/http/client.js @@ -624,8 +624,8 @@ HTTPClient.prototype.getWalletBlock = function getWalletBlock(id, height) { * @returns {Promise} */ -HTTPClient.prototype.getWalletCoin = function getWalletCoin(id, account, hash, index) { - return this._get(`/wallet/${id}/coin/${hash}/${index}`, { account }); +HTTPClient.prototype.getWalletCoin = function getWalletCoin(id, hash, index) { + return this._get(`/wallet/${id}/coin/${hash}/${index}`); }; /** diff --git a/lib/http/wallet.js b/lib/http/wallet.js index 8111ff99..4cff6777 100644 --- a/lib/http/wallet.js +++ b/lib/http/wallet.js @@ -232,8 +232,8 @@ HTTPWallet.prototype.getBlock = function getBlock(height) { * @see Wallet#getCoin */ -HTTPWallet.prototype.getCoin = function getCoin(account, hash, index) { - return this.client.getWalletCoin(this.id, account, hash, index); +HTTPWallet.prototype.getCoin = function getCoin(hash, index) { + return this.client.getWalletCoin(this.id, hash, index); }; /**