Solidity icon indicating copy to clipboard operation
Solidity copied to clipboard

Gas running infinite

Open epm-bt opened this issue 6 years ago • 1 comments

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

epm-bt avatar Sep 28 '18 15:09 epm-bt

On my PoA consensus network, this issue is reported by the Remix IDE but I can interact with the functions normally...

epm-bt avatar Oct 30 '18 15:10 epm-bt