[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[taler-wallet-core] branch master updated: wallet-core: do not crash for
From: |
gnunet |
Subject: |
[taler-wallet-core] branch master updated: wallet-core: do not crash for payments with zero coins |
Date: |
Mon, 18 Dec 2023 23:26:24 +0100 |
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 2db6888c5 wallet-core: do not crash for payments with zero coins
2db6888c5 is described below
commit 2db6888c511117a980a04159117c9e9db38e1c05
Author: Florian Dold <florian@dold.me>
AuthorDate: Mon Dec 18 23:26:20 2023 +0100
wallet-core: do not crash for payments with zero coins
---
packages/taler-wallet-core/src/operations/pay-merchant.ts | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/packages/taler-wallet-core/src/operations/pay-merchant.ts
b/packages/taler-wallet-core/src/operations/pay-merchant.ts
index 078f0faf9..fb8a6d898 100644
--- a/packages/taler-wallet-core/src/operations/pay-merchant.ts
+++ b/packages/taler-wallet-core/src/operations/pay-merchant.ts
@@ -152,7 +152,7 @@ export async function getTotalPaymentCost(
ws: InternalWalletState,
pcs: PayCoinSelection,
): Promise<AmountJson> {
- const currency = Amounts.currencyOf(pcs.coinContributions[0]);
+ const currency = Amounts.currencyOf(pcs.paymentAmount);
return ws.db
.mktx((x) => [x.coins, x.denominations])
.runReadOnly(async (tx) => {
--
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: do not crash for payments with zero coins,
gnunet <=