commit e5931a52168e1ffa56b39eb724f294aaa94e3fb1 parent a81f545c60b5a6f8727321203e7c49f14316eb3b Author: Florian Dold <dold@taler.net> Date: Thu, 3 Sep 2026 16:01:24 +0200 wallet-core: give bank hostnames only to x-taler-bank wire types Diffstat:
| M | packages/taler-wallet-core/src/requests.ts | | | 10 | +++++++--- |
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 @@ -1660,9 +1660,13 @@ async function handleGetDepositWireTypesForCurrency( 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, }); } }