[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[taler-wallet-core] branch master updated: wallet-core: canonicalize bas
From: |
gnunet |
Subject: |
[taler-wallet-core] branch master updated: wallet-core: canonicalize base URL from bank on withdrawal |
Date: |
Wed, 05 Oct 2022 11:11:54 +0200 |
This is an automated email from the git hooks/post-receive script.
dold pushed a commit to branch master
in repository wallet-core.
The following commit(s) were added to refs/heads/master by this push:
new 4d232fd56 wallet-core: canonicalize base URL from bank on withdrawal
4d232fd56 is described below
commit 4d232fd56510ae69b76fef4f4ecade1e0d4b230d
Author: Florian Dold <florian@dold.me>
AuthorDate: Wed Oct 5 11:11:51 2022 +0200
wallet-core: canonicalize base URL from bank on withdrawal
---
packages/taler-wallet-core/src/operations/withdraw.ts | 8 ++++++--
1 file changed, 6 insertions(+), 2 deletions(-)
diff --git a/packages/taler-wallet-core/src/operations/withdraw.ts
b/packages/taler-wallet-core/src/operations/withdraw.ts
index e7760174e..143f9ce33 100644
--- a/packages/taler-wallet-core/src/operations/withdraw.ts
+++ b/packages/taler-wallet-core/src/operations/withdraw.ts
@@ -1844,6 +1844,10 @@ export async function acceptWithdrawalFromUri(
restrictAge?: number;
},
): Promise<AcceptWithdrawalResponse> {
+ const selectedExchange = canonicalizeBaseUrl(req.selectedExchange);
+ logger.info(
+ `accepting withdrawal via ${req.talerWithdrawUri}, canonicalized selected
exchange ${selectedExchange}`,
+ );
const existingWithdrawalGroup = await ws.db
.mktx((x) => [x.withdrawalGroups])
.runReadOnly(async (tx) => {
@@ -1870,14 +1874,14 @@ export async function acceptWithdrawalFromUri(
};
}
- await updateExchangeFromUrl(ws, req.selectedExchange);
+ await updateExchangeFromUrl(ws, selectedExchange);
const withdrawInfo = await getBankWithdrawalInfo(
ws.http,
req.talerWithdrawUri,
);
const exchangePaytoUri = await getExchangePaytoUri(
ws,
- req.selectedExchange,
+ selectedExchange,
withdrawInfo.wireTypes,
);
--
To stop receiving notification emails like this one, please contact
gnunet@gnunet.org.
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [taler-wallet-core] branch master updated: wallet-core: canonicalize base URL from bank on withdrawal,
gnunet <=