-
Notifications
You must be signed in to change notification settings - Fork 985
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]: --solc-ast
flag does nothing and all
#2501
Comments
The flag should probably be removed unless we re-add support (see crytic/crytic-compile#187). Slither needs to perform a full semantic analysis of contracts referenced in an AST and requiring a user to determine the necessary JSON artifacts sounds like it would be difficult to use. What is your use case? Perhaps we can offer an alternative |
My mistake, I opened the issue from the wrong account. That's me. I see, so it was removed and is no longer available. I wanted to use it for analyzing individual contracts. Currently, you can only reduce the scope to files, but a file I want to be able to analyze just |
Just as things are currently, analyzing a single file is quite buggy regardless. If the project uses foundry for example, |
I would like to analyse smart contract AST with your Contract class, since it exposes a very well designed api for the AST structure. Now, how to parse an AST from the solc compilation with Slither? It should be very useful to provide this functionality. |
Describe the issue:
The
--help
command claims you can use the flag--solc-ast
to provide a contract as a json AST, however it does not do anything at all.Code example to reproduce the issue:
https://github.com/DanielForTests/foundry_without_packages
Version:
0.10.3
Relevant log output:
The text was updated successfully, but these errors were encountered: