From ef4cc1a1ca568cf9e43964ca20bfc0b8c07a41e5 Mon Sep 17 00:00:00 2001 From: Florian Dold Date: Fri, 19 Jan 2024 14:35:00 +0100 Subject: 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. --- packages/taler-wallet-core/src/util/coinSelection.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'packages/taler-wallet-core/src/util/coinSelection.ts') 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 { const denoms: AvailableDenom[] = []; -- cgit v1.2.3