Skip to content

Commit d32e012

Browse files
committed
fixup! Use the pay_for_offer_from_hrn method from LDK upstream
This fixup commit simply fixes issues with the bolt12 send_using_amount method signature in the tests.
1 parent 68c33b7 commit d32e012

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

tests/integration_tests_rust.rs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1007,7 +1007,7 @@ fn simple_bolt12_send_receive() {
10071007
let expected_payer_note = Some("Test".to_string());
10081008
assert!(node_a
10091009
.bolt12_payment()
1010-
.send_using_amount(&offer, less_than_offer_amount, None, None)
1010+
.send_using_amount(&offer, less_than_offer_amount, None, None, None)
10111011
.is_err());
10121012
let payment_id = node_a
10131013
.bolt12_payment()
@@ -1016,6 +1016,7 @@ fn simple_bolt12_send_receive() {
10161016
expected_amount_msat,
10171017
expected_quantity,
10181018
expected_payer_note.clone(),
1019+
None
10191020
)
10201021
.unwrap();
10211022

@@ -1242,7 +1243,7 @@ fn static_invoice_server() {
12421243
};
12431244

12441245
let payment_id =
1245-
node_sender.bolt12_payment().send_using_amount(&offer, 5_000, None, None).unwrap();
1246+
node_sender.bolt12_payment().send_using_amount(&offer, 5_000, None, None, None).unwrap();
12461247

12471248
expect_payment_successful_event!(node_sender, Some(payment_id), None);
12481249
}

0 commit comments

Comments
 (0)