beacon/engine: fix cell proof logic

This commit is contained in:
Marius van der Wijden 2025-04-07 14:27:11 +02:00 committed by MariusVanDerWijden
parent 193973d890
commit d2c1ba024c

View file

@ -336,7 +336,7 @@ func BlockToExecutableData(block *types.Block, fees *big.Int, sidecars []*types.
for j := range sidecar.Blobs {
bundle.Blobs = append(bundle.Blobs, hexutil.Bytes(sidecar.Blobs[j][:]))
bundle.Commitments = append(bundle.Commitments, hexutil.Bytes(sidecar.Commitments[j][:]))
if len(sidecar.Proofs[j]) != 0 {
if len(sidecar.CellProofs[j]) == 0 {
bundle.Proofs = append(bundle.Proofs, hexutil.Bytes(sidecar.Proofs[j][:]))
} else {
for _, proof := range sidecar.CellProofs[j] {