I would like to know what the allowed value range of the parameter optimize-runs is when running the Solidity compiler. I didn't find the answer in the official document of Solidity.

  • 1
    Probably Number.MAX_SAFE_INTEGER, but you shouldn't be needing such a high value, since it will most likely not improve anything at that point (while increasing you compilation time). Side note: Etherscan verification API, doesn't allow anything higher than 999999, so if you plan to use this API after deployment, than you might want to take this fact into consideration. – goodvibration May 19 at 7:47

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.