commit 6508c349ded67b4690d0446e9181d80c944f7d52
parent c261fc1e0d3906912c65677d900e1ab866f2b1ce
Author: Antoine A <>
Date: Tue, 22 Apr 2025 18:27:42 +0200
wallet-core: missing await
Diffstat:
2 files changed, 8 insertions(+), 8 deletions(-)
diff --git a/packages/taler-wallet-core/src/pay-peer-push-credit.ts b/packages/taler-wallet-core/src/pay-peer-push-credit.ts
@@ -408,7 +408,7 @@ export class PeerPushCreditTransactionContext implements TransactionContext {
}
async suspendTransaction(): Promise<void> {
- this.transition({}, async (rec) => {
+ await this.transition({}, async (rec) => {
switch (rec.status) {
case PeerPushCreditStatus.DialogProposed:
case PeerPushCreditStatus.Done:
@@ -444,7 +444,7 @@ export class PeerPushCreditTransactionContext implements TransactionContext {
}
async abortTransaction(): Promise<void> {
- this.transition({}, async (rec) => {
+ await this.transition({}, async (rec) => {
switch (rec.status) {
case PeerPushCreditStatus.Failed:
case PeerPushCreditStatus.Aborted:
@@ -471,7 +471,7 @@ export class PeerPushCreditTransactionContext implements TransactionContext {
}
async resumeTransaction(): Promise<void> {
- this.transition({}, async (rec) => {
+ await this.transition({}, async (rec) => {
switch (rec.status) {
case PeerPushCreditStatus.DialogProposed:
case PeerPushCreditStatus.PendingMergeKycRequired:
@@ -507,7 +507,7 @@ export class PeerPushCreditTransactionContext implements TransactionContext {
}
async failTransaction(reason?: TalerErrorDetail): Promise<void> {
- this.transition({}, async (rec) => {
+ await this.transition({}, async (rec) => {
switch (rec.status) {
case PeerPushCreditStatus.Done:
case PeerPushCreditStatus.Aborted:
diff --git a/packages/taler-wallet-core/src/pay-peer-push-debit.ts b/packages/taler-wallet-core/src/pay-peer-push-debit.ts
@@ -332,7 +332,7 @@ export class PeerPushDebitTransactionContext implements TransactionContext {
}
async suspendTransaction(): Promise<void> {
- this.transition({}, async (rec) => {
+ await this.transition({}, async (rec) => {
switch (rec.status) {
case PeerPushDebitStatus.PendingCreatePurse:
rec.status = PeerPushDebitStatus.SuspendedCreatePurse;
@@ -360,7 +360,7 @@ export class PeerPushDebitTransactionContext implements TransactionContext {
}
async abortTransaction(reason?: TalerErrorDetail): Promise<void> {
- this.transition({}, async (rec) => {
+ await this.transition({}, async (rec) => {
switch (rec.status) {
case PeerPushDebitStatus.PendingReady:
case PeerPushDebitStatus.SuspendedReady:
@@ -390,7 +390,7 @@ export class PeerPushDebitTransactionContext implements TransactionContext {
}
async resumeTransaction(): Promise<void> {
- this.transition({}, async (rec) => {
+ await this.transition({}, async (rec) => {
switch (rec.status) {
case PeerPushDebitStatus.SuspendedAbortingDeletePurse:
rec.status = PeerPushDebitStatus.AbortingDeletePurse;
@@ -418,7 +418,7 @@ export class PeerPushDebitTransactionContext implements TransactionContext {
}
async failTransaction(reason?: TalerErrorDetail): Promise<void> {
- this.transition({}, async (rec) => {
+ await this.transition({}, async (rec) => {
switch (rec.status) {
case PeerPushDebitStatus.AbortingDeletePurse:
case PeerPushDebitStatus.SuspendedAbortingDeletePurse: