Skip to content

refactor: set EVM.readOnly and depth before running stateful precompile #210

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

Merged
merged 3 commits into from
Aug 12, 2025

Conversation

ARR4N
Copy link
Collaborator

@ARR4N ARR4N commented Aug 6, 2025

Why this should be merged

Improved clarity.

How this works

Semantically equivalent refactor. These values aren't accessible / needed during execution of a stateful precompile, but are important when making outgoing calls so were originally only set in the PrecompileEnvironment.Call() implementation. This was confusing and led to a false-positive bug report.

How this was tested

Existing tests.

@ARR4N ARR4N requested a review from a team August 6, 2025 04:11
@ARR4N ARR4N enabled auto-merge (squash) August 6, 2025 04:11
@ARR4N ARR4N merged commit 62dc2ea into main Aug 12, 2025
17 of 18 checks passed
@ARR4N ARR4N deleted the arr4n/increment-call-depth-early branch August 12, 2025 00:35
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