aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFlorian Dold <florian@dold.me>2024-01-10 13:48:48 +0100
committerFlorian Dold <florian@dold.me>2024-01-10 13:48:48 +0100
commitb609f48ae664618b6f4e75e42221f1240c8f61f0 (patch)
tree2ee2396757c4fe0fc11fa8b5b46fc63633f30a4e
parentf5771cc7b99dc938fd606dcbee350b66ec8027c9 (diff)
-don't use deprecated methodv0.9.4-dev.4
-rw-r--r--packages/taler-wallet-core/src/operations/withdraw.ts8
1 files 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(