gnunet-svn
[Top][All Lists]
Advanced

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

[taler-wallet-core] branch master updated: -don't use deprecated method


From: gnunet
Subject: [taler-wallet-core] branch master updated: -don't use deprecated method
Date: Wed, 10 Jan 2024 13:48:51 +0100

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 b609f48ae -don't use deprecated method
b609f48ae is described below

commit b609f48ae664618b6f4e75e42221f1240c8f61f0
Author: Florian Dold <florian@dold.me>
AuthorDate: Wed Jan 10 13:48:48 2024 +0100

    -don't use deprecated method
---
 packages/taler-wallet-core/src/operations/withdraw.ts | 8 ++++++--
 1 file changed, 6 insertions(+), 2 deletions(-)

diff --git a/packages/taler-wallet-core/src/operations/withdraw.ts 
b/packages/taler-wallet-core/src/operations/withdraw.ts
index 8221abea6..0817be472 100644
--- a/packages/taler-wallet-core/src/operations/withdraw.ts
+++ b/packages/taler-wallet-core/src/operations/withdraw.ts
@@ -731,6 +731,7 @@ interface WithdrawalBatchResult {
   coinIdxs: number[];
   batchResp: ExchangeWithdrawBatchResponse;
 }
+
 enum AmlStatus {
   normal = 0,
   pending = 1,
@@ -999,7 +1000,10 @@ async function processPlanchetExchangeBatchRequest(
   ).href;
 
   try {
-    const resp = await ws.http.postJson(reqUrl, batchReq);
+    const resp = await ws.http.fetch(reqUrl, {
+      method: "PATCH",
+      body: batchReq,
+    });
     if (resp.status === HttpStatusCode.UnavailableForLegalReasons) {
       await handleKycRequired(ws, withdrawalGroup, resp, 0, requestCoinIdxs);
       return {
@@ -1583,7 +1587,7 @@ async function processWithdrawalGroupPendingReady(
     work = [];
     for (let j = 0; j < resp.coinIdxs.length; j++) {
       if (!resp.batchResp.ev_sigs[j]) {
-        //response may not be available when there is kyc needed
+        // response may not be available when there is kyc needed
         continue;
       }
       work.push(

-- 
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]