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 // are returned
function getBookOffers(remote, account, ledgerVersion, limit, function getBookOffers(remote, account, ledgerVersion, limit,
takerGets, takerPays, callback) { takerGets, takerPays, callback) {
remote.requestBookOffers({ remote.requestBookOffers(utils.renameCounterpartyToIssuerInOrder({
taker_gets: takerGets, taker_gets: takerGets,
taker_pays: takerPays, taker_pays: takerPays,
ledger: ledgerVersion || 'validated', ledger: ledgerVersion || 'validated',
limit: limit, limit: limit,
taker: account taker: account
}, composeAsync((data) => data.offers.map(parseOrderbookOrder), callback)); }), composeAsync((data) => data.offers.map(parseOrderbookOrder), callback));
} }
function isSameIssue(a, b) { function isSameIssue(a, b) {