gnunet-svn
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[taler-wallet-core] branch master updated (2c57d4212 -> 68f3c3b44)


From: gnunet
Subject: [taler-wallet-core] branch master updated (2c57d4212 -> 68f3c3b44)
Date: Mon, 20 Feb 2023 16:37:13 +0100

This is an automated email from the git hooks/post-receive script.

sebasjm pushed a change to branch master
in repository wallet-core.

    from 2c57d4212 fix #7579: swap effective and raw on invoice
     new 0b6b757f6 don't use outdated purchase info
     new 68f3c3b44 pretty

The 2 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails.  The revisions
listed as "add" were already present in the repository and have only
been added to this reference.


Summary of changes:
 packages/taler-wallet-core/src/bank-api-client.ts              | 5 ++++-
 packages/taler-wallet-core/src/crypto/workers/worker-common.ts | 5 ++++-
 packages/taler-wallet-core/src/host-impl.node.ts               | 5 +----
 packages/taler-wallet-core/src/operations/deposits.ts          | 1 -
 packages/taler-wallet-core/src/operations/exchanges.ts         | 7 ++++++-
 packages/taler-wallet-core/src/operations/pay-merchant.ts      | 9 +++++++--
 packages/taler-wallet-core/src/wallet-api-types.ts             | 1 -
 7 files changed, 22 insertions(+), 11 deletions(-)

diff --git a/packages/taler-wallet-core/src/bank-api-client.ts 
b/packages/taler-wallet-core/src/bank-api-client.ts
index addec709f..f807d2daa 100644
--- a/packages/taler-wallet-core/src/bank-api-client.ts
+++ b/packages/taler-wallet-core/src/bank-api-client.ts
@@ -36,7 +36,10 @@ import {
   TalerError,
   TalerErrorCode,
 } from "@gnu-taler/taler-util";
-import { HttpRequestLibrary, readSuccessResponseJsonOrThrow } from 
"@gnu-taler/taler-util/http";
+import {
+  HttpRequestLibrary,
+  readSuccessResponseJsonOrThrow,
+} from "@gnu-taler/taler-util/http";
 
 const logger = new Logger("bank-api-client.ts");
 
diff --git a/packages/taler-wallet-core/src/crypto/workers/worker-common.ts 
b/packages/taler-wallet-core/src/crypto/workers/worker-common.ts
index 9f23cf685..63147ce92 100644
--- a/packages/taler-wallet-core/src/crypto/workers/worker-common.ts
+++ b/packages/taler-wallet-core/src/crypto/workers/worker-common.ts
@@ -23,7 +23,10 @@ import {
   stringifyError as safeStringifyError,
   TalerErrorCode,
 } from "@gnu-taler/taler-util";
-import { getErrorDetailFromException, makeErrorDetail } from 
"@gnu-taler/taler-util";
+import {
+  getErrorDetailFromException,
+  makeErrorDetail,
+} from "@gnu-taler/taler-util";
 import { TalerCryptoInterfaceR } from "../cryptoImplementation.js";
 import {
   CryptoWorkerRequestMessage,
diff --git a/packages/taler-wallet-core/src/host-impl.node.ts 
b/packages/taler-wallet-core/src/host-impl.node.ts
index ec57e0ebe..097b5856a 100644
--- a/packages/taler-wallet-core/src/host-impl.node.ts
+++ b/packages/taler-wallet-core/src/host-impl.node.ts
@@ -35,16 +35,13 @@ import * as fs from "fs";
 import { NodeThreadCryptoWorkerFactory } from 
"./crypto/workers/nodeThreadWorker.js";
 import { SynchronousCryptoWorkerFactoryPlain } from 
"./crypto/workers/synchronousWorkerFactoryPlain.js";
 import { openTalerDatabase } from "./index.js";
-import {
-  createPlatformHttpLib,
-} from "@gnu-taler/taler-util/http";
+import { createPlatformHttpLib } from "@gnu-taler/taler-util/http";
 import { SetTimeoutTimerAPI } from "./util/timer.js";
 import { Wallet } from "./wallet.js";
 import { DefaultNodeWalletArgs, makeTempfileId } from "./host-common.js";
 
 const logger = new Logger("host-impl.node.ts");
 
-
 /**
  * Get a wallet instance with default settings for node.
  *
diff --git a/packages/taler-wallet-core/src/operations/deposits.ts 
b/packages/taler-wallet-core/src/operations/deposits.ts
index 9d71f020f..1e696a1d6 100644
--- a/packages/taler-wallet-core/src/operations/deposits.ts
+++ b/packages/taler-wallet-core/src/operations/deposits.ts
@@ -82,7 +82,6 @@ import { getTotalRefreshCost } from "./refresh.js";
  */
 const logger = new Logger("deposits.ts");
 
-
 export async function checkDepositKycStatus(
   ws: InternalWalletState,
   exchangeUrl: string,
diff --git a/packages/taler-wallet-core/src/operations/exchanges.ts 
b/packages/taler-wallet-core/src/operations/exchanges.ts
index 2b6a881dd..08d30eac6 100644
--- a/packages/taler-wallet-core/src/operations/exchanges.ts
+++ b/packages/taler-wallet-core/src/operations/exchanges.ts
@@ -50,7 +50,12 @@ import {
   WireFeeMap,
   WireInfo,
 } from "@gnu-taler/taler-util";
-import { HttpRequestLibrary, readSuccessResponseTextOrThrow, 
readSuccessResponseJsonOrThrow, getExpiry } from "@gnu-taler/taler-util/http";
+import {
+  HttpRequestLibrary,
+  readSuccessResponseTextOrThrow,
+  readSuccessResponseJsonOrThrow,
+  getExpiry,
+} from "@gnu-taler/taler-util/http";
 import {
   DenominationRecord,
   DenominationVerificationStatus,
diff --git a/packages/taler-wallet-core/src/operations/pay-merchant.ts 
b/packages/taler-wallet-core/src/operations/pay-merchant.ts
index f84ac2567..19cd9c9e8 100644
--- a/packages/taler-wallet-core/src/operations/pay-merchant.ts
+++ b/packages/taler-wallet-core/src/operations/pay-merchant.ts
@@ -2697,8 +2697,13 @@ export async function processPurchaseQueryRefund(
         await ws.db
           .mktx((x) => [x.purchases])
           .runReadWrite(async (tx) => {
-            purchase.purchaseStatus = PurchaseStatus.Paid;
-            await tx.purchases.put(purchase);
+            const p = await tx.purchases.get(proposalId);
+            if (!p) {
+              logger.warn("purchase does not exist anymore");
+              return;
+            }
+            p.purchaseStatus = PurchaseStatus.Paid;
+            await tx.purchases.put(p);
           });
 
         // No new refunds, but we still need to notify
diff --git a/packages/taler-wallet-core/src/wallet-api-types.ts 
b/packages/taler-wallet-core/src/wallet-api-types.ts
index dc62f0c0f..36c7677ac 100644
--- a/packages/taler-wallet-core/src/wallet-api-types.ts
+++ b/packages/taler-wallet-core/src/wallet-api-types.ts
@@ -370,7 +370,6 @@ export type SuspendTransactionOp = {
   response: EmptyObject;
 };
 
-
 /**
  * Resume a transaction
  */

-- 
To stop receiving notification emails like this one, please contact
gnunet@gnunet.org.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]