-
Notifications
You must be signed in to change notification settings - Fork 1.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix(config
): enable optimizer
when optimizer_runs
set in config
#9673
Conversation
config
): enable optimizer when optimizer_runs
set in configconfig
): enable optimizer
when optimizer_runs
set in config
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice, lgtm!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm! made some tests on sepolia base with deploying with different optimizer
and optimizer_config
settings and they behave properly
Hi folks @yash-atreya @zerosnacks @grandizzy, it looks like the change of |
hi @elopez the change was intentional but we weren't aware of this side effect, will be looking into. Meanwhile you could just pin foundry to stable which doesn't contain the breaking changes (see announcement on top of release notes https://github.com/foundry-rs/foundry/releases/tag/stable) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Merge
Motivation
Closes #9665
Solution
optimizer
andoptimizer_runs
keys toOption<bool>
andOption<usize>
respectivelyoptimizer_runs
key has been set in the config and is nonzero. If yes, then setconfig.optimizer = true
.optimizer = true
butoptimizer_runs
has not been set.optimizers_runs
will default to200
.