mirror of
https://github.com/Xahau/xahau.js.git
synced 2025-11-20 04:05:52 +00:00
Fix counterparty/issuer bug
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user