@@ -19,7 +19,7 @@ use offers::merkle::{SignatureTlvStream, self};
19
19
use offers:: offer:: { Amount , OfferContents , OfferTlvStream } ;
20
20
use offers:: parse:: { ParseError , SemanticError } ;
21
21
use offers:: payer:: { PayerContents , PayerTlvStream } ;
22
- use util:: ser:: { Readable , WithoutLength , Writeable , Writer } ;
22
+ use util:: ser:: { HighZeroBytesDroppedBigSize , Readable , WithoutLength , Writeable , Writer } ;
23
23
24
24
use prelude:: * ;
25
25
@@ -123,11 +123,11 @@ impl TryFrom<Vec<u8>> for InvoiceRequest {
123
123
124
124
tlv_stream ! ( InvoiceRequestTlvStream , InvoiceRequestTlvStreamRef , {
125
125
( 80 , chain: ChainHash ) ,
126
- ( 82 , amount: u64 ) ,
126
+ ( 82 , amount: ( u64 , HighZeroBytesDroppedBigSize ) ) ,
127
127
( 84 , features: OfferFeatures ) ,
128
- ( 86 , quantity: u64 ) ,
128
+ ( 86 , quantity: ( u64 , HighZeroBytesDroppedBigSize ) ) ,
129
129
( 88 , payer_id: PublicKey ) ,
130
- ( 89 , payer_note: String ) ,
130
+ ( 89 , payer_note: ( String , WithoutLength ) ) ,
131
131
} ) ;
132
132
133
133
type ParsedInvoiceRequest = ( Vec < u8 > , FullInvoiceRequestTlvStream ) ;
0 commit comments