I have a Solidity contract using Oraclize. I use it to generate a random number between 0-100.
My problem is that I get a string in the result response and would like to compare with a uint.
As soon as I try to add this line of code to convert the result to a uint, the __callback function never gets executed as it expend too much gas.
playerDieResult[myid] = parseInt(result);
If I remove this line, my __callback function gets executed and I see the result stored in a memory variable as a string correctly.
My problem is that I don't have a way to compare that randomly generated number with another number.
parseIntworks correctly? My guess is that it has a bug that causes the failure. – Ismael Oct 03 '21 at 21:08