File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -50,14 +50,14 @@ func init() {
50
50
51
51
type hooks struct {}
52
52
53
- // OverrideNewEVMArgs is a hook that is called back when a new EVM is created .
53
+ // OverrideNewEVMArgs is a hook that is called in [vm.NewEVM] .
54
54
// It allows for the modification of the EVM arguments before the EVM is created.
55
55
// Specifically, we set Random to be the same as Difficulty since Shanghai.
56
56
// This allows using the same jump table as upstream.
57
57
// Then we set Difficulty to 0 as it is post Merge in upstream.
58
58
// Additionally we wrap the StateDB with the appropriate StateDB wrapper,
59
59
// which is used in coreth to process historical pre-AP1 blocks with the
60
- // GetCommittedState method as it was historically.
60
+ // [StateDbAP1. GetCommittedState] method as it was historically.
61
61
func (hooks ) OverrideNewEVMArgs (args * vm.NewEVMArgs ) * vm.NewEVMArgs {
62
62
rules := args .ChainConfig .Rules (args .BlockContext .BlockNumber , params .IsMergeTODO , args .BlockContext .Time )
63
63
args .StateDB = wrapStateDB (rules , args .StateDB )
You can’t perform that action at this time.
0 commit comments