Solidity
Solidity copied to clipboard
Gas running infinite
Hi there
Thanks for the video and for the code about the contract interactions (https://github.com/filipmartinsson/Solidity/tree/master/Contract%20Interaction). However, when I compile it on Remix I get the following error
Gas requirement of function Caller.getCaleeValue(address) 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)
How did you get around this? Plus, do you have any general advise to avoid such problems when coding in Solidity??
Cheers
On my PoA consensus network, this issue is reported by the Remix IDE but I can interact with the functions normally...