summaryrefslogtreecommitdiff
path: root/packages/taler-wallet-core/src/exchanges.ts
diff options
context:
space:
mode:
Diffstat (limited to 'packages/taler-wallet-core/src/exchanges.ts')
-rw-r--r--packages/taler-wallet-core/src/exchanges.ts7
1 files changed, 5 insertions, 2 deletions
diff --git a/packages/taler-wallet-core/src/exchanges.ts b/packages/taler-wallet-core/src/exchanges.ts
index a57215ee4..2680ede78 100644
--- a/packages/taler-wallet-core/src/exchanges.ts
+++ b/packages/taler-wallet-core/src/exchanges.ts
@@ -1826,12 +1826,15 @@ export class DenomLossTransactionContext implements TransactionContext {
failTransaction(): Promise<void> {
throw new Error("Method not implemented.");
}
- deleteTransaction(): Promise<void> {
+ async deleteTransaction(): Promise<void> {
+ await this.wex.db.runReadWriteTx(["denomLossEvents"], async (tx) => {
+ await tx.denomLossEvents.delete(this.denomLossEventId);
+ });
throw new Error("Method not implemented.");
}
constructor(
- wex: WalletExecutionContext,
+ private wex: WalletExecutionContext,
public denomLossEventId: string,
) {
this.transactionId = constructTransactionIdentifier({