[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[taler-wallet-core] 02/03: fix: not saving planchet as kyc required
From: |
gnunet |
Subject: |
[taler-wallet-core] 02/03: fix: not saving planchet as kyc required |
Date: |
Fri, 10 Feb 2023 16:53:38 +0100 |
This is an automated email from the git hooks/post-receive script.
sebasjm pushed a commit to branch master
in repository wallet-core.
commit 599c6fa9545b1ea9ad3e0c27d06b3c6c1ec153cd
Author: Sebastian <sebasjm@gmail.com>
AuthorDate: Fri Feb 10 12:53:02 2023 -0300
fix: not saving planchet as kyc required
---
packages/taler-wallet-core/src/operations/withdraw.ts | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/packages/taler-wallet-core/src/operations/withdraw.ts
b/packages/taler-wallet-core/src/operations/withdraw.ts
index 5b8944aaf..63879e557 100644
--- a/packages/taler-wallet-core/src/operations/withdraw.ts
+++ b/packages/taler-wallet-core/src/operations/withdraw.ts
@@ -549,7 +549,7 @@ async function processPlanchetExchangeBatchRequest(
};
}
- async function handleKycRequired(resp: HttpResponse, startIdx: number) {
+ async function handleKycRequired(resp: HttpResponse, startIdx: number):
Promise<void> {
logger.info("withdrawal requires KYC");
const respJson = await resp.json();
const uuidResp = codecForWalletKycUuid().decode(respJson);
@@ -557,7 +557,7 @@ async function processPlanchetExchangeBatchRequest(
await ws.db
.mktx((x) => [x.planchets, x.withdrawalGroups])
.runReadWrite(async (tx) => {
- for (let i = 0; i < startIdx; i++) {
+ for (let i = startIdx; i < coinIdxs.length; i++) {
let planchet = await tx.planchets.indexes.byGroupAndIndex.get([
withdrawalGroup.withdrawalGroupId,
coinIdxs[i],
@@ -583,7 +583,7 @@ async function processPlanchetExchangeBatchRequest(
return;
}
- async function storeCoinError(e: any, coinIdx: number) {
+ async function storeCoinError(e: any, coinIdx: number): Promise<void> {
const errDetail = getErrorDetailFromException(e);
logger.trace("withdrawal request failed", e);
logger.trace(String(e));
--
To stop receiving notification emails like this one, please contact
gnunet@gnunet.org.