@@ -587,6 +587,7 @@ impl_into_encodable_field_for_borrowed_seq!(u64);
587587impl_into_encodable_field_for_borrowed_seq ! ( U256 <' a>) ;
588588impl_into_encodable_field_for_borrowed_seq ! ( Mac <' a>) ;
589589impl_into_encodable_field_for_borrowed_seq ! ( Signature <' a>) ;
590+ impl_into_encodable_field_for_borrowed_seq ! ( B032 <' a>) ;
590591impl_into_encodable_field_for_borrowed_seq ! ( B0255 <' a>) ;
591592impl_into_encodable_field_for_borrowed_seq ! ( B064K <' a>) ;
592593impl_into_encodable_field_for_borrowed_seq ! ( B016M <' a>) ;
@@ -600,6 +601,7 @@ impl_into_encodable_field_for_owned_seq!(u64);
600601impl_into_encodable_field_for_owned_seq ! ( U256Owned ) ;
601602impl_into_encodable_field_for_owned_seq ! ( MacOwned ) ;
602603impl_into_encodable_field_for_owned_seq ! ( SignatureOwned ) ;
604+ impl_into_encodable_field_for_owned_seq ! ( B032Owned ) ;
603605impl_into_encodable_field_for_owned_seq ! ( B0255Owned ) ;
604606impl_into_encodable_field_for_owned_seq ! ( B064KOwned ) ;
605607impl_into_encodable_field_for_owned_seq ! ( B016MOwned ) ;
@@ -831,6 +833,16 @@ impl<T: GetSize> GetSize for Sv2OptionOwned<T> {
831833mod test {
832834 use crate :: { Decodable , Seq064K } ;
833835
836+ #[ test]
837+ fn seq_of_b032_encodes ( ) {
838+ use crate :: { B032Owned , EncodableField , Seq0255Owned } ;
839+
840+ let item = B032Owned :: try_from ( alloc:: vec![ 0x42u8 ; 32 ] ) . unwrap ( ) ;
841+ let seq = Seq0255Owned :: new ( alloc:: vec![ item] ) . unwrap ( ) ;
842+ let encodable: EncodableField = seq. into ( ) ;
843+ assert ! ( matches!( encodable, EncodableField :: Struct ( _) ) ) ;
844+ }
845+
834846 #[ test]
835847 fn get_structure_does_not_overallocate_from_tiny_header ( ) {
836848 let data: [ u8 ; 2 ] = [ 0xff , 0xff ] ;
0 commit comments