Skip to content
4 changes: 2 additions & 2 deletions beacon_node/lighthouse_network/tests/rpc_tests.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1018,7 +1018,7 @@ fn test_tcp_columns_by_root_chunked_rpc() {
},
signature: Signature::empty(),
},
column: vec![vec![0; E::bytes_per_blob()].try_into().unwrap()]
column: vec![vec![0; E::bytes_per_cell()].try_into().unwrap()]
.try_into()
.unwrap(),
kzg_commitments: vec![KzgCommitment::empty_for_testing()].try_into().unwrap(),
Expand Down Expand Up @@ -1163,7 +1163,7 @@ fn test_tcp_columns_by_range_chunked_rpc() {
},
signature: Signature::empty(),
},
column: vec![vec![0; E::bytes_per_blob()].try_into().unwrap()]
column: vec![vec![0; E::bytes_per_cell()].try_into().unwrap()]
.try_into()
.unwrap(),
kzg_commitments: vec![KzgCommitment::empty_for_testing()].try_into().unwrap(),
Expand Down
5 changes: 5 additions & 0 deletions consensus/types/src/eth_spec.rs
Original file line number Diff line number Diff line change
Expand Up @@ -310,6 +310,11 @@ pub trait EthSpec: 'static + Default + Sync + Send + Clone + Debug + PartialEq +
Self::BytesPerBlob::to_usize()
}

/// Returns the `BYTES_PER_CELL` constant for this specification.
fn bytes_per_cell() -> usize {
Self::BytesPerCell::to_usize()
}

/// Returns the `KZG_COMMITMENT_INCLUSION_PROOF_DEPTH` preset for this specification.
fn kzg_proof_inclusion_proof_depth() -> usize {
Self::KzgCommitmentInclusionProofDepth::to_usize()
Expand Down