Skip to content
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

How to detect contracts of different compiled versions in large batches #1929

Open
EgbertTtTt opened this issue May 21, 2023 · 1 comment
Open
Labels
question Further information is requested

Comments

@EgbertTtTt
Copy link

EgbertTtTt commented May 21, 2023

Hello everyone, I am planning to use slither to do large-scale (about 1200) smart contract vulnerability detection as a reference for the experimental data of the paper. But these contracts all require different versions of the solidity compiler (for example: ^0.4.20, ^0.6.4). Is there any way to automatically batch detect these contracts without manually switching the solc version?
Thank you very much!

@0xalpharush
Copy link
Contributor

Slither and crytic-compile do not currently attempt to automatically configure the solc version, but there was some progress here (crytic/crytic-compile#411). Additionally, there is a function (_guess_solc) in crytic-compile that works off the pragma but that assumes it's compatible with source code and that a pragma exists https://github.com/crytic/crytic-compile/blob/fc58a9191ddcf92d1e07b2c59a95cd48abb5652f/crytic_compile/platform/solc.py#L747

@0xalpharush 0xalpharush added the question Further information is requested label May 26, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants