When I compile this in Remix (0.4.21+commit.dfe3193c.Emscripten.clang):
uint256 public rewardAmount = 40;
function adjustReward (uint256 reward) onlyOwner public {
rewardAmount = reward;
}
I'm getting this error:
Gas requirement of function Quarters.adjustReward(uint256) high: infinite. If the gas requirement of a function is higher than the block gas limit, it cannot be executed. Please avoid loops in your functions or actions that modify large areas of storage (this includes clearing or copying arrays in storage)
Any ideas why this simple function is triggering this warning and how to fix it/avoid the warning?