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: charge stateless gas on jump #530

Merged
merged 2 commits into from
Jan 7, 2025

Conversation

gballet
Copy link
Owner

@gballet gballet commented Jan 6, 2025

No check was made to see if the access witness was allocated when charging for an invalid jump.

I have changed it to execute the charge regardless. This is redundant with the interpreter's execution loop, but I think it's easier to read.

core/vm/instructions.go Outdated Show resolved Hide resolved
Signed-off-by: Guillaume Ballet <[email protected]>
@gballet gballet force-pushed the fix-jumpi-stateless-gas-charge branch from d3c9d9c to 9b476e9 Compare January 6, 2025 16:42
@gballet gballet merged commit 4a2f6fb into kaustinen-with-shapella Jan 7, 2025
12 of 13 checks passed
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