taler-typescript-core

Wallet core logic and WebUIs for various components
Log | Files | Refs | Submodules | README | LICENSE

commit 45ae39c9d2e1d24b7aceb37d4cd511591e2c9b78
parent 6c20bd1f4e066c0675a8df4751254489695fec4c
Author: Florian Dold <florian@dold.me>
Date:   Mon,  2 Feb 2026 23:24:40 +0100

extra check for denom families

Diffstat:
Mpackages/taler-wallet-core/src/withdraw.ts | 7+++++++
1 file changed, 7 insertions(+), 0 deletions(-)

diff --git a/packages/taler-wallet-core/src/withdraw.ts b/packages/taler-wallet-core/src/withdraw.ts @@ -1401,6 +1401,13 @@ export async function getWithdrawableDenomsTx( ); const relevantDenoms: DenominationRecord[] = []; for (const fam of allFamilies) { + const famCurrency = Amounts.currencyOf(fam.familyParams.value); + if (famCurrency != currency) { + logger.warn( + `unexpected currency ${famCurrency} in denom family for exchange ${exchangeBaseUrl}`, + ); + continue; + } if ( maxAmount != null && Amounts.cmp(fam.familyParams.value, maxAmount) > 0