I'm using Remix to deploy onto Rinkeby.
I can deploy the contract fine, although I have to increase the 3000000 gas limit to 13000000.
When I trigger an event that updates a uint256 field, the transaction goes through fine.
However, when I change that to update a single array value myArray[0] = someint, it gives me callback contain no result Gas required exceeds block gas limit: 13000000, and doesn't matter what I set gas limit to.
Specifically:
address[] public addressList;
uint public someint;
function testit() payable {
addressList[0] = msg.sender; // This line always exceeds gas limit
someint = msg.value; // Only this line works
sendFunds(); // does this: ownerwallet.transfer(msg.value);
}
Why would such a trivial call exceed the gas limit?