[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[taler-wallet-core] 04/04: tolerate zero-value payments
From: |
gnunet |
Subject: |
[taler-wallet-core] 04/04: tolerate zero-value payments |
Date: |
Mon, 12 Jul 2021 15:55:39 +0200 |
This is an automated email from the git hooks/post-receive script.
dold pushed a commit to branch master
in repository wallet-core.
commit 1c0cce3f5812cd2796ab9693b47f035427ca5340
Author: Florian Dold <florian@dold.me>
AuthorDate: Mon Jul 12 15:55:31 2021 +0200
tolerate zero-value payments
---
packages/taler-wallet-core/src/operations/pay.ts | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/packages/taler-wallet-core/src/operations/pay.ts
b/packages/taler-wallet-core/src/operations/pay.ts
index 33d3bc83..fed61428 100644
--- a/packages/taler-wallet-core/src/operations/pay.ts
+++ b/packages/taler-wallet-core/src/operations/pay.ts
@@ -145,7 +145,8 @@ export async function getTotalPaymentCost(
costs.push(pcs.coinContributions[i]);
costs.push(refreshCost);
}
- return Amounts.sum(costs).amount;
+ const zero = Amounts.getZero(pcs.paymentAmount.currency);
+ return Amounts.sum([zero, ...costs]).amount;
});
}
--
To stop receiving notification emails like this one, please contact
gnunet@gnunet.org.