mirror of
https://github.com/Xahau/xahau.js.git
synced 2025-11-24 14:15:49 +00:00
Add getLedger method, remove getLedgerHeader method
This commit is contained in:
@@ -7,7 +7,8 @@ const composeAsync = utils.common.composeAsync;
|
||||
const parseAccountOrder = require('./parse/account-order');
|
||||
|
||||
function requestAccountOffers(remote, address, ledgerVersion, options,
|
||||
marker, limit, callback) {
|
||||
marker, limit, callback
|
||||
) {
|
||||
remote.requestAccountOffers({
|
||||
account: address,
|
||||
marker: marker,
|
||||
@@ -34,7 +35,7 @@ function getOrdersAsync(account, options, callback) {
|
||||
}
|
||||
|
||||
function getOrders(account: string, options={}) {
|
||||
return utils.promisify(getOrdersAsync.bind(this))(account, options);
|
||||
return utils.promisify(getOrdersAsync).call(this, account, options);
|
||||
}
|
||||
|
||||
module.exports = getOrders;
|
||||
|
||||
Reference in New Issue
Block a user