fix broken test

This commit is contained in:
Guillaume Ballet 2024-05-06 15:05:58 +02:00
parent 7fa2327931
commit d804ab92cd

View file

@ -197,8 +197,8 @@ func ProcessBeaconBlockRoot(beaconRoot common.Hash, vmenv *vm.EVM, statedb *stat
To: &params.BeaconRootsAddress, To: &params.BeaconRootsAddress,
Data: beaconRoot[:], Data: beaconRoot[:],
} }
txctx := NewEVMTxContext(msg) vmenv.Reset(NewEVMTxContext(msg), statedb)
vmenv.Reset(txctx, statedb) statedb.AddAddressToAccessList(params.BeaconRootsAddress)
_, _, _ = vmenv.Call(vm.AccountRef(msg.From), *msg.To, msg.Data, 30_000_000, common.U2560) _, _, _ = vmenv.Call(vm.AccountRef(msg.From), *msg.To, msg.Data, 30_000_000, common.U2560)
statedb.Finalise(true) statedb.Finalise(true)
} }