From f1d808f2d668a9ebf1d5e2f2c65649b4c56822eb Mon Sep 17 00:00:00 2001 From: lightclient Date: Mon, 14 Aug 2023 14:56:33 -0600 Subject: [PATCH] core: add beacon roots storage address to access list so sstore doesn't panic --- core/state_processor.go | 1 + 1 file changed, 1 insertion(+) diff --git a/core/state_processor.go b/core/state_processor.go index 739e220a46..be91f997b5 100644 --- a/core/state_processor.go +++ b/core/state_processor.go @@ -92,6 +92,7 @@ func (p *StateProcessor) Process(block *types.Block, statedb *state.StateDB, cfg Data: (*beaconRoot)[:], // TODO use 4byte invocation? } vmenv.Reset(NewEVMTxContext(msg), statedb) + statedb.AddAddressToAccessList(params.BeaconRootsStorageAddress) _, _, _ = vmenv.Call(vm.AccountRef(msg.From), *msg.To, msg.Data, 100_000, common.Big0) statedb.Finalise(true) }