Skip to content

inefficient-state-variable-increment / inefficient-state-variable-decrement #59

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

Open
defidegenerate opened this issue Mar 20, 2024 · 1 comment

Comments

@defidegenerate
Copy link

defidegenerate commented Mar 20, 2024

Why is there no inefficient-state-variable-decrement to detect the decrement case, similar to the inefficient-state-variable-increment case?

@defidegenerate
Copy link
Author

Also, the inefficient-state-variable-increment rule doesn't apply to mapping variables based on my testing. In this case, the rule is a false positive.

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

No branches or pull requests

1 participant