Gas requirement of function YOUR_FUNCTION is 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) #813
Replies: 1 comment
-
Nice Tip @Samk13 this is very helpful. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
In Remix IDE if you get this warning and you want to get rid of it:

The solution that clears the warning:
change
string
types tobytes32
so you limit the string size or any bytes value.but when you deploy you get a revert error when testing the functionalities (SimpleStorage as an example)
How can you fix the warning?
Beta Was this translation helpful? Give feedback.
All reactions