-
Notifications
You must be signed in to change notification settings - Fork 922
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
[Bug-Candidate]: Slither calls solc with non-existant option "--evm-version" #2422
Comments
Found a way around it after digging a little bit.
It works. But it's absolutely a bug. |
Hi! This is a known foundry bug, being tracked upstream here foundry-rs/foundry#7014 slither / crytic-compile query Also related: #2287 |
Describe the issue:
This issue happens when we have a foundry.toml in the current working directory. Slither detects foundry and tries to pass its configurations to solc.
One config is evm_version which defaults to "paris", however the --evm-version option does not exist in old versions of solc (such as 0.4.18), so solc breaks.
Code example to reproduce the issue:
Just put the above code in a foundry project, with a simple foundry.toml:
And try to run slither from the same directory, making Slither detect foundry.
slither /home/user/default/src/WETH9.sol --disable-color --json /home/user/default/src/WETH9.json --solc-solcs-select 0.4.18
Version:
0.10.2
Relevant log output:
The text was updated successfully, but these errors were encountered: