-
Notifications
You must be signed in to change notification settings - Fork 982
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]:version 0.9.1 crashes "AttributeError: 'NoneType' object has no attribute 'context'" related to using for/ constant folding #1467
Comments
Thanks for opening a bug report! This likely has to do with "using for" imports e.g.
|
The first issue pertains to this code where a top level variable is not yet analyzed but accessed during However, there's a second issue:
This is caused by accessing a type alias in a top level struct . Since the structure isn't associated with a contract, it doesn't have any type aliases in its scope to lookup here. |
thanks for looking into this |
Describe the issue:
slither can't compile my code errors with "AttributeError: 'NoneType' object has no attribute 'context'"
this is with version 0.9.1
the stacktrace from slither is too cryptic to me to figure out which contract or why it is caused
Code example to reproduce the issue:
issue is visible on this CI run https://github.com/beehive-innovation/rain-protocol/actions/runs/3456654052/jobs/5769538607
Version:
0.9.1
Relevant log output:
The text was updated successfully, but these errors were encountered: