diff --git a/beacon_chain/spec/eip7594_helpers.nim b/beacon_chain/spec/eip7594_helpers.nim index 41aa4cfcb..ae1e6409f 100644 --- a/beacon_chain/spec/eip7594_helpers.nim +++ b/beacon_chain/spec/eip7594_helpers.nim @@ -340,16 +340,25 @@ proc get_data_column_sidecars*(signed_beacon_block: deneb.SignedBeaconBlock | var sidecars = newSeqOfCap[DataColumnSidecar](kzg_abi.CELLS_PER_EXT_BLOB) + # Flattened the cells and proofs from the `CellsAndProofs` type to + # make it simpler to handle overall + flattened_cells = + newSeq[CellBytes](cellsAndProofs.len) + flattened_proofs = + newSeq[ProofBytes](cellsAndProofs.len) + + + for i in 0..