Convert getOrderBook and add unit test

This commit is contained in:
Chris Clark
2015-06-25 16:34:03 -07:00
parent 6a763fab18
commit 3e0f43e44e
17 changed files with 1736 additions and 229 deletions

View File

@@ -30,8 +30,8 @@ function getAccountOrders(account, options, callback) {
const getter = _.partial(requestAccountOffers, this.remote, account,
ledgerVersion, options);
utils.getRecursive(getter, limit,
composeAsync((orders) => _.sortBy(orders, (order) => order.state.sequence),
callback));
composeAsync((orders) => _.sortBy(orders,
(order) => order.properties.sequence), callback));
}
module.exports = getAccountOrders;
module.exports = utils.wrapCatch(getAccountOrders);