Skip to content

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, ceyonur, darioush 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