http: fix get wallet tx for client.
This commit is contained in:
parent
9489b3dce0
commit
4ca5ad3824
@ -537,9 +537,8 @@ HTTPClient.prototype.getRange = function getRange(id, account, options) {
|
|||||||
* @returns {Promise} - Returns {@link TX}[].
|
* @returns {Promise} - Returns {@link TX}[].
|
||||||
*/
|
*/
|
||||||
|
|
||||||
HTTPClient.prototype.getWalletTX = function getWalletTX(id, account, hash) {
|
HTTPClient.prototype.getWalletTX = function getWalletTX(id, hash) {
|
||||||
var options = { account: account };
|
return this._get('/wallet/' + id + '/tx/' + hash);
|
||||||
return this._get('/wallet/' + id + '/tx/' + hash, options);
|
|
||||||
};
|
};
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
@ -188,8 +188,8 @@ HTTPWallet.prototype.getRange = function getRange(account, options) {
|
|||||||
* @see Wallet#getTX
|
* @see Wallet#getTX
|
||||||
*/
|
*/
|
||||||
|
|
||||||
HTTPWallet.prototype.getTX = function getTX(account, hash) {
|
HTTPWallet.prototype.getTX = function getTX(hash) {
|
||||||
return this.client.getWalletTX(this.id, account, hash);
|
return this.client.getWalletTX(this.id, hash);
|
||||||
};
|
};
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user