-
Notifications
You must be signed in to change notification settings - Fork 53
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
Fix TempleDao repo issues #577
Conversation
After fixing the unreachable code, I now get the same error as described in #574 . The error occurs in the |
The troublesome node:
I believe it's the return variable of the function. It looks like aderyn pulled in the |
Alex, this is not a correct fix for state mutability. Please dont push it. Here's why - For older versions of solidity, state mutability can be none while constant and mutable properties carry the information of mutability. Therefore the helper function is required to abstract that away. One potential fix is to return None instead of unreachable. |
State mutability can be none when it doesn't apply .for example in interface function definitions |
Aligned. I'll revert these changes and come up with another solution. We should account for immutable |
@TilakMaddy can you please review this? :) |
Question -
(We must change the return type of the helper function to be option)
|
Good point. Changed to return Optional, and return None in the
Let's think about this as a follow-up. I'd be interested to see how it affects report output. |
Fixes #574
variables.rs
defaults toMutability:immutable
get_node_sort_key
usesname_location
only if it doesn't contain-1
. Otherwise it usessrc