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

Linter counts immutable vars as state vars #258

Closed
gitpusha opened this issue Oct 19, 2020 · 4 comments · Fixed by #267
Closed

Linter counts immutable vars as state vars #258

gitpusha opened this issue Oct 19, 2020 · 4 comments · Fixed by #267
Assignees
Labels

Comments

@gitpusha
Copy link

Hi,

For the max-states-count rule, the linter counts immutable vars as state variable declarations, which shouldnt be the case, right?

See:
image

@fvictorio
Copy link
Contributor

image

@fvictorio
Copy link
Contributor

Pretty sure it's a bug tho

@fvictorio fvictorio added the bug label Oct 19, 2020
@gitpusha
Copy link
Author

Yeah, I guess the rule was invented with saving on sloads/sstores in mind, right?

@fvictorio
Copy link
Contributor

That rule is before my time, but maybe? I always interpreted it as "don't make contracts that are too complex"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants