@@ -27,14 +27,13 @@ use prelude::*;
27
27
/// the underlying types.
28
28
#[ derive( Debug ) ]
29
29
struct OfferTlvStream {
30
- _empty : ( ) ,
31
- chains : Option < WithoutLength < Vec < BlockHash > > > ,
30
+ chains : Vec < BlockHash > ,
32
31
currency : Option < WithoutLength < String > > ,
33
32
amount : Option < HighZeroBytesDroppedVarInt < u64 > > ,
34
33
description : Option < WithoutLength < String > > ,
35
34
features : Option < OfferFeatures > ,
36
35
absolute_expiry : Option < HighZeroBytesDroppedVarInt < u64 > > ,
37
- paths : Option < WithoutLength < Vec < BlindedPath > > > ,
36
+ paths : Vec < BlindedPath > ,
38
37
issuer : Option < WithoutLength < String > > ,
39
38
quantity_min : Option < HighZeroBytesDroppedVarInt < u64 > > ,
40
39
quantity_max : Option < HighZeroBytesDroppedVarInt < u64 > > ,
@@ -45,14 +44,14 @@ struct OfferTlvStream {
45
44
signature : Option < Signature > ,
46
45
}
47
46
48
- impl_writeable_msg ! ( OfferTlvStream , { _empty } , {
49
- ( 2 , chains, option ) ,
47
+ impl_writeable_tlv_stream ! ( OfferTlvStream , {
48
+ ( 2 , chains, vec_type ) ,
50
49
( 6 , currency, option) ,
51
50
( 8 , amount, option) ,
52
51
( 10 , description, option) ,
53
52
( 12 , features, option) ,
54
53
( 14 , absolute_expiry, option) ,
55
- ( 16 , paths, option ) ,
54
+ ( 16 , paths, vec_type ) ,
56
55
( 20 , issuer, option) ,
57
56
( 22 , quantity_min, option) ,
58
57
( 24 , quantity_max, option) ,
0 commit comments