Skip to content

Commit

Permalink
Merge pull request #191 from moonstream-to/getTransaction-fix
Browse files Browse the repository at this point in the history
increase number of checks
  • Loading branch information
Anton-Mushnin authored Apr 1, 2024
2 parents 29eb345 + 2644ba8 commit 06d796b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions web/src/tokenInterfaces/FullcountPlayerAPI.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down Expand Up @@ -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) {
Expand Down

0 comments on commit 06d796b

Please sign in to comment.