-
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]: enum inside contract is resulting in "type not found" #1166
Comments
Hi @holic, thank you for reporting this. I cannot reproduce the bug (tested with 0.8.2 and 0.8.3), can you share the entire codebase where this happen? |
Have exactly the same issue with Slither version |
experiencing the same issue with Slither version 0.8.3 and Solidity 0.8.13 |
I get a similar issue, for me it is due to the enum being present inside of CustomError Feels related to #1173 Managed to hack a resolution by doing the following: But have no context to know if this is a proper solution so I'm not gonna open up a PR |
I'm getting a similar issue when an enum is inside a library. |
plus one |
If someone can share a failure example related to the enums, that would be appreciated. The custom error issue will be addressed separately. |
Same issue here with an example (solidity 0.8.10 + slither 0.8.3)
If I remove the error RevertCode(...), slither works fine. Please have a look. Thanks. |
I believe this is fixed by #1245. It will be available in the 0.8.4 release |
Describe the issue:
enum
insidecontract
is resulting inError: Type not found enum MyEnum
Code example to reproduce the issue:
If I move the
enum
out ofcontract
, slither runs fine:Version:
0.8.2
Relevant log output:
The text was updated successfully, but these errors were encountered: