diff --git a/beacon/engine/types.go b/beacon/engine/types.go index 980e8f9771..97225cbba2 100644 --- a/beacon/engine/types.go +++ b/beacon/engine/types.go @@ -347,7 +347,11 @@ func ExecutableDataToBlockNoHash(data ExecutableData, versionedHashes []common.H SlotNumber: data.SlotNumber, BlockAccessListHash: blockAccessListHash, } - return types.NewBlockWithHeader(header).WithBody(types.Body{Transactions: txs, Uncles: nil, Withdrawals: data.Withdrawals}), nil + block := types.NewBlockWithHeader(header).WithBody(types.Body{Transactions: txs, Uncles: nil, Withdrawals: data.Withdrawals}) + if data.BlockAccessList != nil { + block = block.WithAccessListUnsafe(data.BlockAccessList) + } + return block, nil } // BlockToExecutableData constructs the ExecutableData structure by filling the