[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[taler-wallet-core] 01/02: wallet-core: emit balance-changed transaction
From: |
gnunet |
Subject: |
[taler-wallet-core] 01/02: wallet-core: emit balance-changed transaction after transitioning transaction |
Date: |
Wed, 27 Mar 2024 19:21:59 +0100 |
This is an automated email from the git hooks/post-receive script.
dold pushed a commit to branch master
in repository wallet-core.
commit 3a1a56704da4d77a2bbedd70a7fe4d26b00165fb
Author: Florian Dold <florian@dold.me>
AuthorDate: Wed Mar 27 19:21:39 2024 +0100
wallet-core: emit balance-changed transaction after transitioning
transaction
---
packages/taler-wallet-core/src/pay-peer-pull-credit.ts | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/packages/taler-wallet-core/src/pay-peer-pull-credit.ts
b/packages/taler-wallet-core/src/pay-peer-pull-credit.ts
index 96d8f65a6..4155f83e6 100644
--- a/packages/taler-wallet-core/src/pay-peer-pull-credit.ts
+++ b/packages/taler-wallet-core/src/pay-peer-pull-credit.ts
@@ -1073,15 +1073,15 @@ export async function initiatePeerPullPayment(
const ctx = new PeerPullCreditTransactionContext(wex, pursePair.pub);
+ notifyTransition(wex, ctx.transactionId, transitionInfo);
+ wex.taskScheduler.startShepherdTask(ctx.taskId);
+
// The pending-incoming balance has changed.
wex.ws.notify({
type: NotificationType.BalanceChange,
hintTransactionId: ctx.transactionId,
});
- notifyTransition(wex, ctx.transactionId, transitionInfo);
- wex.taskScheduler.startShepherdTask(ctx.taskId);
-
return {
talerUri: stringifyTalerUri({
type: TalerUriAction.PayPull,
--
To stop receiving notification emails like this one, please contact
gnunet@gnunet.org.