This commit is contained in:
Sebastian 2023-02-10 12:53:27 -03:00
parent 599c6fa954
commit c8336c8c2c
No known key found for this signature in database
GPG Key ID: BE4FF68352439FC1

View File

@ -549,7 +549,10 @@ async function processPlanchetExchangeBatchRequest(
};
}
async function handleKycRequired(resp: HttpResponse, startIdx: number): Promise<void> {
async function handleKycRequired(
resp: HttpResponse,
startIdx: number,
): Promise<void> {
logger.info("withdrawal requires KYC");
const respJson = await resp.json();
const uuidResp = codecForWalletKycUuid().decode(respJson);
@ -794,7 +797,7 @@ async function processPlanchetVerifyAndStoreCoin(
type: NotificationType.CoinWithdrawn,
numTotal: wgContext.numPlanchets,
numWithdrawn: wgContext.planchetsFinished.size,
}
};
// Check if this is the first time that the whole
// withdrawal succeeded. If so, mark the withdrawal
@ -1183,7 +1186,7 @@ export async function processWithdrawalGroup(
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
continue
continue;
}
work.push(
processPlanchetVerifyAndStoreCoin(