-
Notifications
You must be signed in to change notification settings - Fork 1.9k
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
feat(config): allow overriding solc settings per contract #7720
Comments
This would be great. There are a lot of settings that affect compile time (e.g. |
would it be possible to also support this inline (like on #3062) opposed to on foundry.toml? |
I'd like to rephrase #7720 (comment).
We don't care that much about gas savings and bytecode for tests, but having to deal with Having this feature would allow using |
this looks like it will be solved when PR #8668 ready and merged |
Component
Forge
Describe the feature you would like
The main use case for this is when one contract is close to the size limit—compile the large contract with 1 optimizer run (which minimizes code size) and compile the rest with larger values of optimizer runs.
In #3062 we were tracking this and had a potential UX but that issue was closed by the inline config PR, so I think we lost track of this feature request? Either way, the idea was :
Hardhat has supported this for a long time, as seen here:
Additional context
No response
The text was updated successfully, but these errors were encountered: