Fix counterparty/issuer bug

This commit is contained in:
Chris Clark
2015-06-30 13:02:42 -07:00
parent 87a8745a64
commit 8f9aec83f2

View File

@@ -10,13 +10,13 @@ const composeAsync = utils.common.composeAsync;
// are returned
function getBookOffers(remote, account, ledgerVersion, limit,
takerGets, takerPays, callback) {
remote.requestBookOffers({
remote.requestBookOffers(utils.renameCounterpartyToIssuerInOrder({
taker_gets: takerGets,
taker_pays: takerPays,
ledger: ledgerVersion || 'validated',
limit: limit,
taker: account
}, composeAsync((data) => data.offers.map(parseOrderbookOrder), callback));
}), composeAsync((data) => data.offers.map(parseOrderbookOrder), callback));
}
function isSameIssue(a, b) {