4

I keep getting these warnings when compiling Solidity code:

Gas requirement of function [...] unknown or not constant.

I know that the gas requirement is not constant, and I've implemented a calculation to set an appropriate gas limit in my DApp's user interface.

Since I have addressed the issue, is there a way to disable this warning for a specific function or globally?

3
  • I'm not sure that is possible, you could try to disable the checkmarks in the 'analysis tab' related to Gas & Economy, otherwise share the code for us to inspect :-)
    – 6egic
    Commented Nov 1, 2017 at 1:28
  • Just checking that you are asking about compilation outside of remix - correct?
    – Thom Ives
    Commented Nov 24, 2017 at 19:11
  • 1
    Related: How to avoid block.timestamp warning? Commented Jan 1, 2018 at 11:30

1 Answer 1

0

This is currently not possible.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.