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

core/vm: remove panic when address is not present #30414

Merged
merged 1 commit into from
Sep 11, 2024

Conversation

achmand
Copy link
Contributor

@achmand achmand commented Sep 9, 2024

Remove redundant address presence check in makeGasSStoreFunc.

This PR simplifies the makeGasSStoreFunc function by removing the redundant check for address presence in the access list. The updated code now only checks for slot presence, streamlining the logic and eliminating unnecessary panic conditions.

This change removes the unnecessary address presence check, simplifying the code and improving maintainability without affecting functionality. The previous panic condition was intended as a canary during the testing phases (i.e. YOLOv2) and is no longer needed.

Copy link
Member

@karalabe karalabe left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

SGTM

@karalabe karalabe added this to the 1.14.9 milestone Sep 11, 2024
@karalabe karalabe merged commit ec69830 into ethereum:master Sep 11, 2024
2 checks passed
@achmand achmand deleted the remove_panic_yolov2 branch September 11, 2024 14:40
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.

2 participants