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