@@ -411,9 +411,10 @@ fn simple_bolt12_send_receive() {
411
411
let node_a_payments = node_a. list_payments ( ) ;
412
412
assert_eq ! ( node_a_payments. len( ) , 1 ) ;
413
413
match node_a_payments. first ( ) . unwrap ( ) . kind {
414
- PaymentKind :: Bolt12 { hash, preimage, secret : _ } => {
414
+ PaymentKind :: Bolt12Offer { hash, preimage, secret : _, offer_id } => {
415
415
assert ! ( hash. is_some( ) ) ;
416
416
assert ! ( preimage. is_some( ) ) ;
417
+ assert_eq ! ( offer_id, offer. id( ) ) ;
417
418
//TODO: We should eventually set and assert the secret sender-side, too, but the BOLT12
418
419
//API currently doesn't allow to do that.
419
420
} ,
@@ -426,10 +427,11 @@ fn simple_bolt12_send_receive() {
426
427
let node_b_payments = node_b. list_payments ( ) ;
427
428
assert_eq ! ( node_b_payments. len( ) , 1 ) ;
428
429
match node_b_payments. first ( ) . unwrap ( ) . kind {
429
- PaymentKind :: Bolt12 { hash, preimage, secret } => {
430
+ PaymentKind :: Bolt12Offer { hash, preimage, secret, offer_id } => {
430
431
assert ! ( hash. is_some( ) ) ;
431
432
assert ! ( preimage. is_some( ) ) ;
432
433
assert ! ( secret. is_some( ) ) ;
434
+ assert_eq ! ( offer_id, offer. id( ) ) ;
433
435
} ,
434
436
_ => {
435
437
panic ! ( "Unexpected payment kind" ) ;
0 commit comments