From 9cfc138e751ba281897389064179e0f4763929e0 Mon Sep 17 00:00:00 2001 From: Florian Dold Date: Fri, 30 Jun 2023 22:00:20 +0200 Subject: [PATCH] wallet-core: use canonicalized base URL when querying exchange --- packages/taler-wallet-core/src/operations/exchanges.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/taler-wallet-core/src/operations/exchanges.ts b/packages/taler-wallet-core/src/operations/exchanges.ts index c0373704a..5d120ccbd 100644 --- a/packages/taler-wallet-core/src/operations/exchanges.ts +++ b/packages/taler-wallet-core/src/operations/exchanges.ts @@ -570,7 +570,7 @@ export async function updateExchangeFromUrl( .mktx((x) => [x.exchanges, x.exchangeDetails]) .runReadWrite(async (tx) => { let exchange = await tx.exchanges.get(canonUrl); - const exchangeDetails = await getExchangeDetails(tx, baseUrl); + const exchangeDetails = await getExchangeDetails(tx, canonUrl); return { exchange, exchangeDetails }; }); if (!exchange) {