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