I wrote this trivial contract in Remix:
pragma solidity ^0.4.24;
contract HelloWorld {
function greet() public pure returns (bytes32) {
return bytes32('Hello World!');
}
}
I got the warning: "Gas requirement of function HelloWorld.greet() high: infinite".
This is very strange since I do not have any strings or dynamic arrays. How can I get rid of this warning and have clean compilation?