diff --git a/consensus/ssz_types/src/fixed_vector.rs b/consensus/ssz_types/src/fixed_vector.rs index 01173e659..9ae0d06ba 100644 --- a/consensus/ssz_types/src/fixed_vector.rs +++ b/consensus/ssz_types/src/fixed_vector.rs @@ -114,10 +114,10 @@ impl Into> for FixedVector { } } -impl Default for FixedVector { +impl Default for FixedVector { fn default() -> Self { Self { - vec: Vec::default(), + vec: (0..N::to_usize()).map(|_| T::default()).collect(), _phantom: PhantomData, } }