From 2644ba8f7275cfd55a123f03370a5d8d9fe1c3c4 Mon Sep 17 00:00:00 2001 From: Anton Mushnin Date: Mon, 1 Apr 2024 16:43:02 +0300 Subject: [PATCH] increase number of checks --- web/src/tokenInterfaces/FullcountPlayerAPI.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/web/src/tokenInterfaces/FullcountPlayerAPI.ts b/web/src/tokenInterfaces/FullcountPlayerAPI.ts index e49caad3..a29407c2 100644 --- a/web/src/tokenInterfaces/FullcountPlayerAPI.ts +++ b/web/src/tokenInterfaces/FullcountPlayerAPI.ts @@ -94,7 +94,7 @@ export async function startSessionFullcountPlayer({ .then(async (response) => { const { gameContract } = getContracts(); let isSuccess = false; - for (let attempt = 1; attempt <= 5; attempt++) { + for (let attempt = 1; attempt <= 10; attempt++) { console.log("checking sessionState after start, attempt: ", attempt); const sessionProgress = await gameContract.methods .sessionProgress(response.data.session_id) @@ -151,7 +151,7 @@ export async function joinSessionFullcountPlayer({ .then(async (response) => { const { gameContract } = getContracts(); let isSuccess = false; - for (let attempt = 1; attempt <= 5; attempt++) { + for (let attempt = 1; attempt <= 10; attempt++) { console.log("checking sessionState after join, attempt: ", attempt); const sessionProgress = await gameContract.methods.sessionProgress(sessionID).call(); if (Number(sessionProgress) !== 2) {