getCoin was unnecessarily passing account

This commit is contained in:
Bucko 2017-09-19 15:43:34 -07:00
parent d9ebfcc2f9
commit e27408dc58
2 changed files with 4 additions and 4 deletions

View File

@ -624,8 +624,8 @@ HTTPClient.prototype.getWalletBlock = function getWalletBlock(id, height) {
* @returns {Promise} * @returns {Promise}
*/ */
HTTPClient.prototype.getWalletCoin = function getWalletCoin(id, account, hash, index) { HTTPClient.prototype.getWalletCoin = function getWalletCoin(id, hash, index) {
return this._get(`/wallet/${id}/coin/${hash}/${index}`, { account }); return this._get(`/wallet/${id}/coin/${hash}/${index}`);
}; };
/** /**

View File

@ -232,8 +232,8 @@ HTTPWallet.prototype.getBlock = function getBlock(height) {
* @see Wallet#getCoin * @see Wallet#getCoin
*/ */
HTTPWallet.prototype.getCoin = function getCoin(account, hash, index) { HTTPWallet.prototype.getCoin = function getCoin(hash, index) {
return this.client.getWalletCoin(this.id, account, hash, index); return this.client.getWalletCoin(this.id, hash, index);
}; };
/** /**