summaryrefslogtreecommitdiff
path: root/packages
diff options
context:
space:
mode:
authorFlorian Dold <florian@dold.me>2024-03-27 19:21:39 +0100
committerFlorian Dold <florian@dold.me>2024-03-27 19:21:39 +0100
commit3a1a56704da4d77a2bbedd70a7fe4d26b00165fb (patch)
treeb88f785c2f3a0b8dfb0e4c118fc6519bfc1f364c /packages
parent30e5b7f6bf6fe7810f3fe0778e203b0e54d34b40 (diff)
downloadwallet-core-3a1a56704da4d77a2bbedd70a7fe4d26b00165fb.tar.gz
wallet-core-3a1a56704da4d77a2bbedd70a7fe4d26b00165fb.tar.bz2
wallet-core-3a1a56704da4d77a2bbedd70a7fe4d26b00165fb.zip
wallet-core: emit balance-changed transaction after transitioning transaction
Diffstat (limited to 'packages')
-rw-r--r--packages/taler-wallet-core/src/pay-peer-pull-credit.ts6
1 files 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,