@@ -380,12 +380,12 @@ fn creates_and_pays_for_offer_using_two_hop_blinded_path() {
380
380
disconnect_peers ( alice, & [ charlie, david, & nodes[ 4 ] , & nodes[ 5 ] ] ) ;
381
381
disconnect_peers ( david, & [ bob, & nodes[ 4 ] , & nodes[ 5 ] ] ) ;
382
382
383
- let ( offer_id , offer) = alice. node
383
+ let offer = alice. node
384
384
. create_offer_builder ( "coffee" . to_string ( ) )
385
385
. unwrap ( )
386
386
. amount_msats ( 10_000_000 )
387
- . build_with_id ( ) . unwrap ( ) ;
388
- let payment_context = PaymentContext :: Bolt12Offer { offer_id } ;
387
+ . build ( ) . unwrap ( ) ;
388
+ let payment_context = PaymentContext :: Bolt12Offer { offer_id : offer . id ( ) } ;
389
389
assert_ne ! ( offer. signing_pubkey( ) , alice_id) ;
390
390
assert ! ( !offer. paths( ) . is_empty( ) ) ;
391
391
for path in offer. paths ( ) {
@@ -533,11 +533,11 @@ fn creates_and_pays_for_offer_using_one_hop_blinded_path() {
533
533
let bob = & nodes[ 1 ] ;
534
534
let bob_id = bob. node . get_our_node_id ( ) ;
535
535
536
- let ( offer_id , offer) = alice. node
536
+ let offer = alice. node
537
537
. create_offer_builder ( "coffee" . to_string ( ) ) . unwrap ( )
538
538
. amount_msats ( 10_000_000 )
539
- . build_with_id ( ) . unwrap ( ) ;
540
- let payment_context = PaymentContext :: Bolt12Offer { offer_id } ;
539
+ . build ( ) . unwrap ( ) ;
540
+ let payment_context = PaymentContext :: Bolt12Offer { offer_id : offer . id ( ) } ;
541
541
assert_ne ! ( offer. signing_pubkey( ) , alice_id) ;
542
542
assert ! ( !offer. paths( ) . is_empty( ) ) ;
543
543
for path in offer. paths ( ) {
@@ -648,12 +648,12 @@ fn pays_for_offer_without_blinded_paths() {
648
648
let bob = & nodes[ 1 ] ;
649
649
let bob_id = bob. node . get_our_node_id ( ) ;
650
650
651
- let ( offer_id , offer) = alice. node
651
+ let offer = alice. node
652
652
. create_offer_builder ( "coffee" . to_string ( ) ) . unwrap ( )
653
653
. clear_paths ( )
654
654
. amount_msats ( 10_000_000 )
655
- . build_with_id ( ) . unwrap ( ) ;
656
- let payment_context = PaymentContext :: Bolt12Offer { offer_id } ;
655
+ . build ( ) . unwrap ( ) ;
656
+ let payment_context = PaymentContext :: Bolt12Offer { offer_id : offer . id ( ) } ;
657
657
assert_eq ! ( offer. signing_pubkey( ) , alice_id) ;
658
658
assert ! ( offer. paths( ) . is_empty( ) ) ;
659
659
0 commit comments