Completely new to using Remix (first few hours of using it) but confused by this behaviour. In the simple code example below using Remix, why does an operation as simple as incrementing a uint256 (commented in code as problem line) cause the Remix gas estimate to become infinite. Is this a bug?
// SPDX-License-Identifier: MIT
pragma solidity 0.8.8; // 0.8.18
contract SimpleStorage {
uint256 public favoriteNumber; // public creates a getter
function store(uint256 _favoriteNumber) public {
favoriteNumber = _favoriteNumber;
favoriteNumber = favoriteNumber + 1; // Problem line here ...
}
}