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

Fix bug in gas inefficiency detection for storage writes #3

Merged
merged 1 commit into from
Nov 18, 2023

Conversation

malik672
Copy link
Owner

@malik672 malik672 commented Nov 18, 2023

  • Resolved an issue where gas inefficiencies related to writing zero to storage slots were not being correctly identified.
  • Updated the logic in get_line_number_zero to ensure accurate detection of lines where zero is written to storage.
  • Addressed potential issues with the handling of the _prev variable for proper tracking of line numbers.
  • suspended the tests

Issue

The bug involved inaccurate detection of gas inefficiencies in storage writes, leading to incorrect identification of lines where zero was being written to storage. The fix ensures that the detection logic is precise and reliable.

This commit addresses the bug and improves the overall accuracy of gas inefficiency detection in storage writes.

@malik672 malik672 merged commit 1f92fdd into master Nov 18, 2023
1 check failed
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

Successfully merging this pull request may close these issues.

1 participant