commit 6f10566329cea8373ad33a2875ffae264b8c41ba
parent c445a377255402431deeca43a10603bc1bac6e60
Author: Florian Dold <dold@taler.net>
Date: Wed, 22 Jul 2026 10:44:22 +0200
wallet: report taler-bank hostnames only for that wire type
The list is only meaningful for x-taler-bank, but every wire type entry was
given the same array, so IBAN entries carried hostnames as well.
Diffstat:
1 file changed, 7 insertions(+), 3 deletions(-)
diff --git a/packages/taler-wallet-core/src/requests.ts b/packages/taler-wallet-core/src/requests.ts
@@ -1345,9 +1345,13 @@ async function handleGetDepositWireTypes(
wtSet.add(parsedPayto.targetType!);
wireTypeDetails.push({
paymentTargetType: parsedPayto.targetType!,
- // Will possibly extended later by other exchanges
- // with the same wire type.
- talerBankHostnames,
+ // Hostnames only apply to x-taler-bank. The array is shared so
+ // that it is possibly extended later by other exchanges with the
+ // same wire type.
+ talerBankHostnames:
+ parsedPayto.targetType === PaytoType.TalerBank
+ ? talerBankHostnames
+ : undefined,
preferredEntryType,
});
}