I'm using an oracle to get results from a custom api. The result is in string by default. I want to convert it to uint256, so that I can perform basic arithmetic functions.
Here's my code:
function __callback(bytes32 myid, string result) public{
if (msg.sender != provable_cbAddress()) revert();
uint256 points = uint(result); //Error here
balanceOf[pointsAllowance[myid]] = points;
remSupply = remSupply - points;
emit LogPriceUpdated(points);
}