From 7062a693dca8f7f171d77980feb4378963bade18 Mon Sep 17 00:00:00 2001 From: Jeffrey Czyz Date: Wed, 7 Dec 2022 23:36:57 -0600 Subject: [PATCH] f - check for unknown required features in request_invoice --- lightning/src/offers/merkle.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lightning/src/offers/merkle.rs b/lightning/src/offers/merkle.rs index 8ebc0fb58af..57e7fe6833c 100644 --- a/lightning/src/offers/merkle.rs +++ b/lightning/src/offers/merkle.rs @@ -240,7 +240,7 @@ mod tests { let invoice_request = OfferBuilder::new("A Mathematical Treatise".into(), recipient_pubkey) .amount(Amount::Currency { iso4217_code: *b"USD", amount: 100 }) .build_unchecked() - .request_invoice(vec![0; 8], payer_keys.public_key()) + .request_invoice(vec![0; 8], payer_keys.public_key()).unwrap() .build_unchecked() .sign::<_, Infallible>(|digest| Ok(secp_ctx.sign_schnorr_no_aux_rand(digest, &payer_keys))) .unwrap();