-
Notifications
You must be signed in to change notification settings - Fork 5.9k
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
Error: Unknown key "inliner" #15576
Comments
For additional context / recap: Steps to reproduce
This yields: When you run: it yields:
|
Just from a quick look, this could be caused by It would be helpful if we could remove some layers of indirection and reproduce this directly with solc. For that we'd need to see what is the exact Standard JSON content and command-line flags that forge is passing to solc. |
Indeed, that's the case, we're setting |
Ref foundry-rs/foundry#9322 (comment) ethereum/solidity#15576 (comment) Set inliner to None since it is properly supported from 0.8.5 version( see `Standard JSON: Properly allow the inliner setting under settings.optimizer.details` https://soliditylang.org/blog/2021/06/10/solidity-0.8.5-release-announcement/) --------- Co-authored-by: DaniPopes <57450786+DaniPopes@users.noreply.github.com>
I can confirm that the defaults have not changed ever since the feature was introduced in 0.8.2 (#10761). But note that the default is dependent on the state of the optimizer: What changed in 0.8.5 (#11419) is just that you can actually use the setting in Standard JSON - there was a bug in validation logic that prevented it from being used. But it did not affect the defaults. |
Description
solc doesn't recognize
inliner
optionEnvironment
Version: 0.8.19+commit.7dd6d404.Darwin.appleclan
shanghai
Steps to Reproduce
Compilation with IR active fails with
Error: Compiler run failed: Error: Unknown key "inline"
For reference and how to reproduce foundry-rs/foundry#9322
The text was updated successfully, but these errors were encountered: