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 faeb7e1 commit 2086194Copy full SHA for 2086194
lightning/src/offers/invoice_request.rs
@@ -1105,6 +1105,22 @@ mod tests {
1105
}
1106
1107
1108
+ #[test]
1109
+ fn parses_invoice_request_without_signature() {
1110
+ let mut buffer = Vec::new();
1111
+ OfferBuilder::new("foo".into(), recipient_pubkey())
1112
+ .amount_msats(1000)
1113
+ .build().unwrap()
1114
+ .request_invoice(vec![1; 32], payer_pubkey())
1115
1116
+ .invoice_request
1117
+ .write(&mut buffer).unwrap();
1118
+
1119
+ if let Err(e) = InvoiceRequest::try_from(buffer) {
1120
+ panic!("error parsing invoice_request: {:?}", e);
1121
+ }
1122
1123
1124
#[test]
1125
fn fails_parsing_invoice_request_with_invalid_signature() {
1126
let mut invoice_request = OfferBuilder::new("foo".into(), recipient_pubkey())
0 commit comments