Skip to content

Commit

Permalink
f rename
Browse files Browse the repository at this point in the history
  • Loading branch information
valentinewallace committed Dec 6, 2024
1 parent 31beb86 commit aeff712
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions lightning/src/ln/blinded_payment_tests.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1465,7 +1465,7 @@ fn static_invoice_unknown_required_features() {
let (offer_builder, nonce) =
nodes[2].node.create_async_receive_offer_builder(blinded_paths_to_always_online_node).unwrap();
let offer = offer_builder.build().unwrap();
let static_invoice_unknown_req_features = nodes[2].node.create_static_invoice_builder_for_async_receive_offer(
let static_invoice_unknown_req_features = nodes[2].node.create_static_invoice_builder(
&offer, nonce, None
)
.unwrap()
Expand Down Expand Up @@ -1534,7 +1534,7 @@ fn ignore_unexpected_static_invoice() {
let (offer_builder, nonce) = nodes[2].node.create_async_receive_offer_builder(blinded_paths_to_always_online_node).unwrap();
let sender_unintended_offer = offer_builder.build().unwrap();

nodes[2].node.create_static_invoice_builder_for_async_receive_offer(
nodes[2].node.create_static_invoice_builder(
&sender_unintended_offer, nonce, None
).unwrap().build_and_sign(&secp_ctx).unwrap()
};
Expand All @@ -1552,7 +1552,7 @@ fn ignore_unexpected_static_invoice() {

// A valid static invoice corresponding to the correct offer will succeed and cause us to send a
// held_htlc_available onion message.
let valid_static_invoice = nodes[2].node.create_static_invoice_builder_for_async_receive_offer(
let valid_static_invoice = nodes[2].node.create_static_invoice_builder(
&offer, offer_nonce, None
).unwrap().build_and_sign(&secp_ctx).unwrap();

Expand Down Expand Up @@ -1599,7 +1599,7 @@ fn pays_static_invoice() {
let offer = offer_builder.build().unwrap();
let amt_msat = 5000;
let payment_id = PaymentId([1; 32]);
let static_invoice = nodes[2].node.create_static_invoice_builder_for_async_receive_offer(
let static_invoice = nodes[2].node.create_static_invoice_builder(
&offer, offer_nonce, None
).unwrap().build_and_sign(&secp_ctx).unwrap();

Expand Down

0 comments on commit aeff712

Please sign in to comment.