Please help explain why a very simple function gets "Gas requirement of function <function_name>() high: infinite" warning in Remix. Here is my simple contract:
contract Simple_Contract
{
uint[] public m_raw;
function addRaw(uint _id) public
{
m_raw[m_raw.length++] = _id;
}
}
It seems that uint[] causes this problem. If it is a case, how to use a dynamic array in the contract?