Skip to content

Commit 2b5d389

Browse files
fixup! fixup! add the bolt12 invoice to the PaymentSend event
Signed-off-by: Vincenzo Palazzo <[email protected]>
1 parent fc1323c commit 2b5d389

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

lightning/src/ln/functional_test_utils.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2307,8 +2307,7 @@ pub fn expect_payment_sent<CM: AChannelManager, H: NodeHolder<CM=CM>>(node: &H,
23072307
check_added_monitors(node, 1);
23082308
}
23092309
// We return the invoice because some test may want to check the invoice details.
2310-
#[allow(unused_assignments)]
2311-
let mut invoice = None;
2310+
let invoice;
23122311
let expected_payment_id = match events[0] {
23132312
Event::PaymentSent { ref payment_id, ref payment_preimage, ref payment_hash, ref amount_msat, ref fee_paid_msat, ref bolt12_invoice } => {
23142313
assert_eq!(expected_payment_preimage, *payment_preimage);

0 commit comments

Comments
 (0)