http: fix get wallet tx for client.

This commit is contained in:
Christopher Jeffrey 2016-11-02 00:50:22 -07:00
parent 9489b3dce0
commit 4ca5ad3824
No known key found for this signature in database
GPG Key ID: 8962AB9DE6666BBD
2 changed files with 4 additions and 5 deletions

View File

@ -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);
};
/**

View File

@ -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);
};
/**