Fix Bitfield type inference

This commit is contained in:
Mac L
2026-02-13 05:29:36 +11:00
parent ecd207f421
commit be9d697ad9

View File

@@ -495,7 +495,9 @@ async fn invalid_attestation_bad_aggregation_bitfield_len() {
.next() .next()
.unwrap() .unwrap()
.aggregation_bits_base_mut() .aggregation_bits_base_mut()
.unwrap() = Bitfield::with_capacity(spec.target_committee_size).unwrap(); .unwrap() =
Bitfield::<ssz::Variable<<MainnetEthSpec as EthSpec>::MaxValidatorsPerCommittee>>::with_capacity(spec.target_committee_size)
.unwrap();
let mut ctxt = ConsensusContext::new(state.slot()); let mut ctxt = ConsensusContext::new(state.slot());
let result = process_operations::process_attestations( let result = process_operations::process_attestations(