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

feat: override vm.NewEVM() args #35

Merged
merged 5 commits into from
Sep 19, 2024
Merged

feat: override vm.NewEVM() args #35

merged 5 commits into from
Sep 19, 2024

Conversation

ARR4N
Copy link
Collaborator

@ARR4N ARR4N commented Sep 19, 2024

Why this should be merged

Overriding of StateDB upon instantiation of a new EVM instance.

How this works

vm.Hooks.OverrideNewEVMArgs(), if registered, intercepts the arguments to NewEVM(). It MAY reflect arguments unchanged, or modify them as desired.

How this was tested

Integration test demonstrating construction of a new *vm.EVM having the chain ID modified.

@ARR4N ARR4N requested review from a team, darioush, ceyonur and michaelkaplan13 and removed request for a team September 19, 2024 20:33
@ARR4N ARR4N merged commit 1a6dd02 into libevm Sep 19, 2024
3 checks passed
@ARR4N ARR4N deleted the arr4n/vm-hooks branch September 19, 2024 20:54
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