@@ -63,7 +63,7 @@ use io;
63
63
use ln:: features:: OfferFeatures ;
64
64
use ln:: msgs:: MAX_VALUE_MSAT ;
65
65
use onion_message:: BlindedPath ;
66
- use util:: ser:: { Writeable , Writer } ;
66
+ use util:: ser:: { HighZeroBytesDroppedBigSize , WithoutLength , Writeable , Writer } ;
67
67
use util:: string:: PrintableString ;
68
68
69
69
use prelude:: * ;
@@ -431,17 +431,17 @@ impl Amount {
431
431
pub type CurrencyCode = [ u8 ; 3 ] ;
432
432
433
433
tlv_stream ! ( OfferTlvStream , OfferTlvStreamRef , {
434
- ( 2 , chains: Vec <ChainHash >) ,
435
- ( 4 , metadata: Vec <u8 >) ,
434
+ ( 2 , chains: ( Vec <ChainHash >, WithoutLength ) ) ,
435
+ ( 4 , metadata: ( Vec <u8 >, WithoutLength ) ) ,
436
436
( 6 , currency: CurrencyCode ) ,
437
- ( 8 , amount: u64 ) ,
438
- ( 10 , description: String ) ,
437
+ ( 8 , amount: ( u64 , HighZeroBytesDroppedBigSize ) ) ,
438
+ ( 10 , description: ( String , WithoutLength ) ) ,
439
439
( 12 , features: OfferFeatures ) ,
440
- ( 14 , absolute_expiry: u64 ) ,
441
- ( 16 , paths: Vec <BlindedPath >) ,
442
- ( 18 , issuer: String ) ,
443
- ( 20 , quantity_min: u64 ) ,
444
- ( 22 , quantity_max: u64 ) ,
440
+ ( 14 , absolute_expiry: ( u64 , HighZeroBytesDroppedBigSize ) ) ,
441
+ ( 16 , paths: ( Vec <BlindedPath >, WithoutLength ) ) ,
442
+ ( 18 , issuer: ( String , WithoutLength ) ) ,
443
+ ( 20 , quantity_min: ( u64 , HighZeroBytesDroppedBigSize ) ) ,
444
+ ( 22 , quantity_max: ( u64 , HighZeroBytesDroppedBigSize ) ) ,
445
445
( 24 , node_id: PublicKey ) ,
446
446
} ) ;
447
447
0 commit comments