gnunet-svn
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[taler-wallet-core] branch master updated: wallet-core: refresh properly


From: gnunet
Subject: [taler-wallet-core] branch master updated: wallet-core: refresh properly after non-abort refunds
Date: Thu, 12 Jan 2023 17:04:35 +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 473cbc390 wallet-core: refresh properly after non-abort refunds
473cbc390 is described below

commit 473cbc3908d6f18511fed14fb45af18f3cd1ee32
Author: Florian Dold <florian@dold.me>
AuthorDate: Thu Jan 12 17:04:33 2023 +0100

    wallet-core: refresh properly after non-abort refunds
---
 packages/taler-wallet-core/src/operations/pay-merchant.ts | 6 +++++-
 1 file changed, 5 insertions(+), 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 0360f7395..cb17f16eb 100644
--- a/packages/taler-wallet-core/src/operations/pay-merchant.ts
+++ b/packages/taler-wallet-core/src/operations/pay-merchant.ts
@@ -2376,7 +2376,11 @@ async function acceptRefunds(
         }
       }
 
-      if (reason === RefundReason.AbortRefund) {
+      if (reason !== RefundReason.AbortRefund) {
+        // For abort-refunds, the refresh group has already been
+        // created before the refund was started.
+        // For other refunds, we need to create it after we know
+        // the amounts.
         const refreshCoinsPubs = Object.values(refreshCoinsMap);
         logger.info(`refreshCoinMap ${j2s(refreshCoinsMap)}`);
         if (refreshCoinsPubs.length > 0) {

-- 
To stop receiving notification emails like this one, please contact
gnunet@gnunet.org.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]