gnunet-svn
[Top][All Lists]
Advanced

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

[taler-wallet-core] branch master updated: use transaction state transit


From: gnunet
Subject: [taler-wallet-core] branch master updated: use transaction state transition instead of other notifications
Date: Tue, 06 Jun 2023 20:01:43 +0200

This is an automated email from the git hooks/post-receive script.

sebasjm pushed a commit to branch master
in repository wallet-core.

The following commit(s) were added to refs/heads/master by this push:
     new 734de5d35 use transaction state transition instead of other 
notifications
734de5d35 is described below

commit 734de5d3598bbf31638daaa5678e378c56881b5e
Author: Sebastian <sebasjm@gmail.com>
AuthorDate: Tue Jun 6 14:57:33 2023 -0300

    use transaction state transition instead of other notifications
---
 .../taler-wallet-webextension/src/components/PendingTransactions.tsx  | 2 +-
 packages/taler-wallet-webextension/src/cta/Refund/state.ts            | 2 +-
 packages/taler-wallet-webextension/src/cta/Refund/test.ts             | 4 ++--
 packages/taler-wallet-webextension/src/popup/BalancePage.tsx          | 2 +-
 packages/taler-wallet-webextension/src/wallet/History.tsx             | 2 +-
 packages/taler-wallet-webextension/src/wallet/Transaction.tsx         | 2 +-
 6 files changed, 7 insertions(+), 7 deletions(-)

diff --git 
a/packages/taler-wallet-webextension/src/components/PendingTransactions.tsx 
b/packages/taler-wallet-webextension/src/components/PendingTransactions.tsx
index 9c11170cd..cde74dffe 100644
--- a/packages/taler-wallet-webextension/src/components/PendingTransactions.tsx
+++ b/packages/taler-wallet-webextension/src/components/PendingTransactions.tsx
@@ -49,7 +49,7 @@ export function PendingTransactions({ goToTransaction }: 
Props): VNode {
 
   useEffect(() => {
     return api.listener.onUpdateNotification(
-      [NotificationType.WithdrawGroupFinished],
+      [NotificationType.TransactionStateTransition],
       state?.retry,
     );
   });
diff --git a/packages/taler-wallet-webextension/src/cta/Refund/state.ts 
b/packages/taler-wallet-webextension/src/cta/Refund/state.ts
index eb7d8834f..0ba77a19d 100644
--- a/packages/taler-wallet-webextension/src/cta/Refund/state.ts
+++ b/packages/taler-wallet-webextension/src/cta/Refund/state.ts
@@ -60,7 +60,7 @@ export function useComponentState({
 
   useEffect(() =>
     api.listener.onUpdateNotification(
-      [NotificationType.RefreshMelted],
+      [NotificationType.TransactionStateTransition],
       info?.retry,
     ),
   );
diff --git a/packages/taler-wallet-webextension/src/cta/Refund/test.ts 
b/packages/taler-wallet-webextension/src/cta/Refund/test.ts
index 1566b3b5b..bc0e61fcb 100644
--- a/packages/taler-wallet-webextension/src/cta/Refund/test.ts
+++ b/packages/taler-wallet-webextension/src/cta/Refund/test.ts
@@ -260,7 +260,7 @@ describe("Refund CTA states", () => {
   //         expect(state.products).undefined;
   //         expect(state.amount).deep.eq(Amounts.parseOrThrow("EUR:2"));
   //         // expect(state.progress).closeTo(1 / 3, 0.01)
-  //         handler.notifyEventFromWallet(NotificationType.RefreshMelted);
+  //         
handler.notifyEventFromWallet(NotificationType.TransactionStateTransition);
   //       },
   //       (state) => {
   //         if (state.status !== "in-progress") expect.fail();
@@ -269,7 +269,7 @@ describe("Refund CTA states", () => {
   //         expect(state.products).undefined;
   //         expect(state.amount).deep.eq(Amounts.parseOrThrow("EUR:2"));
   //         // expect(state.progress).closeTo(2 / 3, 0.01)
-  //         handler.notifyEventFromWallet(NotificationType.RefreshMelted);
+  //         
handler.notifyEventFromWallet(NotificationType.TransactionStateTransition);
   //       },
   //       (state) => {
   //         if (state.status !== "ready") expect.fail();
diff --git a/packages/taler-wallet-webextension/src/popup/BalancePage.tsx 
b/packages/taler-wallet-webextension/src/popup/BalancePage.tsx
index 0469e8c40..a8d2d6fcf 100644
--- a/packages/taler-wallet-webextension/src/popup/BalancePage.tsx
+++ b/packages/taler-wallet-webextension/src/popup/BalancePage.tsx
@@ -87,7 +87,7 @@ function useComponentState({
 
   useEffect(() =>
     api.listener.onUpdateNotification(
-      [NotificationType.WithdrawGroupFinished],
+      [NotificationType.TransactionStateTransition],
       state?.retry,
     ),
   );
diff --git a/packages/taler-wallet-webextension/src/wallet/History.tsx 
b/packages/taler-wallet-webextension/src/wallet/History.tsx
index 31c092697..a16590fe8 100644
--- a/packages/taler-wallet-webextension/src/wallet/History.tsx
+++ b/packages/taler-wallet-webextension/src/wallet/History.tsx
@@ -62,7 +62,7 @@ export function HistoryPage({
 
   useEffect(() => {
     return api.listener.onUpdateNotification(
-      [NotificationType.WithdrawGroupFinished],
+      [NotificationType.TransactionStateTransition],
       state?.retry,
     );
   });
diff --git a/packages/taler-wallet-webextension/src/wallet/Transaction.tsx 
b/packages/taler-wallet-webextension/src/wallet/Transaction.tsx
index f5ffe4221..8f2d279da 100644
--- a/packages/taler-wallet-webextension/src/wallet/Transaction.tsx
+++ b/packages/taler-wallet-webextension/src/wallet/Transaction.tsx
@@ -94,7 +94,7 @@ export function TransactionPage({ tid, goToWalletHistory }: 
Props): VNode {
 
   useEffect(() =>
     api.listener.onUpdateNotification(
-      [NotificationType.WithdrawGroupFinished, NotificationType.KycRequested],
+      [NotificationType.TransactionStateTransition],
       state?.retry,
     ),
   );

-- 
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]