Skip to content

Commit 553c4fa

Browse files
committed
f - Drop vec_type
1 parent f719a8f commit 553c4fa

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

lightning/src/offers/mod.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -27,13 +27,13 @@ use prelude::*;
2727
/// the underlying types.
2828
#[derive(Debug)]
2929
struct OfferTlvStream {
30-
chains: Vec<BlockHash>,
30+
chains: Option<WithoutLength<Vec<BlockHash>>>,
3131
currency: Option<WithoutLength<String>>,
3232
amount: Option<HighZeroBytesDroppedVarInt<u64>>,
3333
description: Option<WithoutLength<String>>,
3434
features: Option<OfferFeatures>,
3535
absolute_expiry: Option<HighZeroBytesDroppedVarInt<u64>>,
36-
paths: Vec<BlindedPath>,
36+
paths: Option<WithoutLength<Vec<BlindedPath>>>,
3737
issuer: Option<WithoutLength<String>>,
3838
quantity_min: Option<HighZeroBytesDroppedVarInt<u64>>,
3939
quantity_max: Option<HighZeroBytesDroppedVarInt<u64>>,
@@ -45,13 +45,13 @@ struct OfferTlvStream {
4545
}
4646

4747
impl_writeable_tlv_stream!(OfferTlvStream, {
48-
(2, chains, vec_type),
48+
(2, chains, option),
4949
(6, currency, option),
5050
(8, amount, option),
5151
(10, description, option),
5252
(12, features, option),
5353
(14, absolute_expiry, option),
54-
(16, paths, vec_type),
54+
(16, paths, option),
5555
(20, issuer, option),
5656
(22, quantity_min, option),
5757
(24, quantity_max, option),

0 commit comments

Comments
 (0)