From fa5f47c468696f03e47bfdb98b0e347e212595fe Mon Sep 17 00:00:00 2001 From: Agnish Ghosh Date: Tue, 27 Aug 2024 01:43:35 +0530 Subject: [PATCH] bug fix --- beacon_chain/spec/eip7594_helpers.nim | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/beacon_chain/spec/eip7594_helpers.nim b/beacon_chain/spec/eip7594_helpers.nim index 26c983274..45a36669d 100644 --- a/beacon_chain/spec/eip7594_helpers.nim +++ b/beacon_chain/spec/eip7594_helpers.nim @@ -254,7 +254,7 @@ proc get_data_column_sidecars*(signed_block: deneb.TrustedSignedBeaconBlock | compute_signed_block_header(signed_block) kzg_incl_proof: array[4, Eth2Digest] - var sidecars = newSeq[DataColumnSidecar](CELLS_PER_EXT_BLOB) + var sidecars = newSeqOfCap[DataColumnSidecar](CELLS_PER_EXT_BLOB) if cellsAndProofs.len == 0: return ok(sidecars) @@ -264,10 +264,8 @@ proc get_data_column_sidecars*(signed_block: deneb.TrustedSignedBeaconBlock | column_cells: DataColumn column_proofs: KzgProofs for i in 0..