We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 54eb6a0 commit e52c347Copy full SHA for e52c347
lightning/src/offers/invoice_request.rs
@@ -1182,6 +1182,22 @@ mod tests {
1182
}
1183
1184
1185
+ #[test]
1186
+ fn parses_invoice_request_without_signature() {
1187
+ let mut buffer = Vec::new();
1188
+ OfferBuilder::new("foo".into(), recipient_pubkey())
1189
+ .amount_msats(1000)
1190
+ .build().unwrap()
1191
+ .request_invoice(vec![1; 32], payer_pubkey())
1192
1193
+ .invoice_request
1194
+ .write(&mut buffer).unwrap();
1195
+
1196
+ if let Err(e) = InvoiceRequest::try_from(buffer) {
1197
+ panic!("error parsing invoice_request: {:?}", e);
1198
+ }
1199
1200
1201
#[test]
1202
fn fails_parsing_invoice_request_with_invalid_signature() {
1203
let mut invoice_request = OfferBuilder::new("foo".into(), recipient_pubkey())
0 commit comments