From c42d54144a07b776ac2b7d31dae3675e26679260 Mon Sep 17 00:00:00 2001 From: Agnish Ghosh Date: Tue, 27 Aug 2024 14:33:37 +0530 Subject: [PATCH] stick to newSeqOfCap --- beacon_chain/spec/eip7594_helpers.nim | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/beacon_chain/spec/eip7594_helpers.nim b/beacon_chain/spec/eip7594_helpers.nim index c7db8d88d..d6a44b6ca 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) @@ -293,7 +293,7 @@ proc get_data_column_sidecars*(signed_block: deneb.SignedBeaconBlock | signed_beacon_block_header = 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 blobs.len == 0: return ok(sidecars)