diff options
author | Florian Dold <florian@dold.me> | 2024-01-19 14:35:00 +0100 |
---|---|---|
committer | Florian Dold <florian@dold.me> | 2024-01-19 14:46:07 +0100 |
commit | ef4cc1a1ca568cf9e43964ca20bfc0b8c07a41e5 (patch) | |
tree | a38370305e43f0c17e9cde1653dadda5ef7e5217 /packages/taler-wallet-core/src/util/coinSelection.ts | |
parent | 2f50b3880edb60db88397fb1c3b5c2f601f6a629 (diff) | |
download | wallet-core-ef4cc1a1ca568cf9e43964ca20bfc0b8c07a41e5.tar.xz |
wallet-core: fix bugs.taler.net/n/7836
The test case for expired refunds now does more checks.
A DB query bug for refund items was also fixed.
Diffstat (limited to 'packages/taler-wallet-core/src/util/coinSelection.ts')
-rw-r--r-- | packages/taler-wallet-core/src/util/coinSelection.ts | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/packages/taler-wallet-core/src/util/coinSelection.ts b/packages/taler-wallet-core/src/util/coinSelection.ts index 9b29cee26..d75450a64 100644 --- a/packages/taler-wallet-core/src/util/coinSelection.ts +++ b/packages/taler-wallet-core/src/util/coinSelection.ts @@ -60,6 +60,7 @@ import { getExchangeWireDetailsInTx, isWithdrawableDenom, WalletDbReadOnlyTransaction, + WalletDbReadOnlyTransactionArr, } from "../index.js"; import { InternalWalletState } from "../internal-wallet-state.js"; import { @@ -914,7 +915,7 @@ export interface PeerCoinSelectionRequest { */ async function selectPayPeerCandidatesForExchange( ws: InternalWalletState, - tx: WalletDbReadOnlyTransaction<"coinAvailability" | "denominations">, + tx: WalletDbReadOnlyTransactionArr<["coinAvailability", "denominations"]>, exchangeBaseUrl: string, ): Promise<AvailableDenom[]> { const denoms: AvailableDenom[] = []; |