-
Notifications
You must be signed in to change notification settings - Fork 981
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
only warn once per compilation unit for solc-version
detector
#1593
Comments
solc-version
solc-version
detector
Can I take on this issue? I think it's |
@EnbangWu That would be great! Yes, it's slither/slither/detectors/attributes/incorrect_solc.py Lines 128 to 141 in 4c976d5
Then, you'll may need to update the detector's tests using python ./tests/test_detectors.py --overwrite as explained here. Lmk if you need help or have questions!
|
That's a great help! Thanks a lot, @0xalpharush ! |
OK just wrote two test solidity files using version 0.8.17 ( as how the too_recent_versions are defined in incorrect.sol) Running would like to see something like this: |
Just made the pull request. Is there a way I can run the slither and see the changed output locally? Or should I duplicate the detector file and customize it and then run |
Describe the desired feature
Currently a result is created for every file but we could only warn once for each version that is considered too recent
The text was updated successfully, but these errors were encountered: