[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[taler-wallet-core] branch master updated: wallet-core: allow deleting d
From: |
gnunet |
Subject: |
[taler-wallet-core] branch master updated: wallet-core: allow deleting denom loss transactions |
Date: |
Sun, 31 Mar 2024 16:55:00 +0200 |
This is an automated email from the git hooks/post-receive script.
dold pushed a commit to branch master
in repository wallet-core.
The following commit(s) were added to refs/heads/master by this push:
new c0146d7e7 wallet-core: allow deleting denom loss transactions
c0146d7e7 is described below
commit c0146d7e7c209159930d695ccc740570173fbc43
Author: Florian Dold <florian@dold.me>
AuthorDate: Sun Mar 31 16:54:57 2024 +0200
wallet-core: allow deleting denom loss transactions
---
packages/taler-wallet-core/src/exchanges.ts | 7 +++++--
1 file 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({
--
To stop receiving notification emails like this one, please contact
gnunet@gnunet.org.
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [taler-wallet-core] branch master updated: wallet-core: allow deleting denom loss transactions,
gnunet <=