diff options
Diffstat (limited to 'packages/taler-wallet-core/src/util/coinSelection.ts')
-rw-r--r-- | packages/taler-wallet-core/src/util/coinSelection.ts | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/packages/taler-wallet-core/src/util/coinSelection.ts b/packages/taler-wallet-core/src/util/coinSelection.ts index e3fbffe98..f24184609 100644 --- a/packages/taler-wallet-core/src/util/coinSelection.ts +++ b/packages/taler-wallet-core/src/util/coinSelection.ts @@ -57,7 +57,7 @@ import { import { DenominationRecord } from "../db.js"; import { getAutoRefreshExecuteThreshold, - getExchangeDetails, + getExchangeWireDetailsInTx, isWithdrawableDenom, WalletDbReadOnlyTransaction, } from "../index.js"; @@ -615,7 +615,10 @@ async function selectPayMerchantCandidates( const exchanges = await tx.exchanges.iter().toArray(); const wfPerExchange: Record<string, AmountJson> = {}; for (const exchange of exchanges) { - const exchangeDetails = await getExchangeDetails(tx, exchange.baseUrl); + const exchangeDetails = await getExchangeWireDetailsInTx( + tx, + exchange.baseUrl, + ); // 1.- exchange has same currency if (exchangeDetails?.currency !== req.contractTermsAmount.currency) { continue; |