@@ -1211,7 +1211,7 @@ fn client_trusts_lsp_end_to_end_test() {
12111211 . node
12121212 . pay_for_bolt11_invoice (
12131213 & invoice,
1214- PaymentId ( invoice. payment_hash ( ) . to_byte_array ( ) ) ,
1214+ PaymentId ( invoice. payment_hash ( ) . 0 ) ,
12151215 None ,
12161216 Default :: default ( ) ,
12171217 Retry :: Attempts ( 3 ) ,
@@ -1684,7 +1684,7 @@ fn late_payment_forwarded_and_safe_after_force_close_does_not_broadcast() {
16841684 . node
16851685 . pay_for_bolt11_invoice (
16861686 & invoice,
1687- PaymentId ( invoice. payment_hash ( ) . to_byte_array ( ) ) ,
1687+ PaymentId ( invoice. payment_hash ( ) . 0 ) ,
16881688 None ,
16891689 Default :: default ( ) ,
16901690 Retry :: Attempts ( 3 ) ,
@@ -1714,7 +1714,7 @@ fn late_payment_forwarded_and_safe_after_force_close_does_not_broadcast() {
17141714 * requested_next_hop_scid,
17151715 * intercept_id,
17161716 * expected_outbound_amount_msat,
1717- PaymentHash ( invoice. payment_hash ( ) . to_byte_array ( ) ) ,
1717+ invoice. payment_hash ( ) ,
17181718 )
17191719 . unwrap ( ) ;
17201720 } ,
@@ -1875,7 +1875,7 @@ fn htlc_timeout_before_client_claim_results_in_handling_failed() {
18751875 . node
18761876 . pay_for_bolt11_invoice (
18771877 & invoice,
1878- PaymentId ( invoice. payment_hash ( ) . to_byte_array ( ) ) ,
1878+ PaymentId ( invoice. payment_hash ( ) . 0 ) ,
18791879 None ,
18801880 Default :: default ( ) ,
18811881 Retry :: Attempts ( 3 ) ,
@@ -1905,7 +1905,7 @@ fn htlc_timeout_before_client_claim_results_in_handling_failed() {
19051905 * requested_next_hop_scid,
19061906 * intercept_id,
19071907 * expected_outbound_amount_msat,
1908- PaymentHash ( invoice. payment_hash ( ) . to_byte_array ( ) ) ,
1908+ invoice. payment_hash ( ) ,
19091909 )
19101910 . unwrap ( ) ;
19111911 } ,
@@ -1984,7 +1984,7 @@ fn htlc_timeout_before_client_claim_results_in_handling_failed() {
19841984 match & client_events[ 0 ] {
19851985 Event :: HTLCHandlingFailed { failure_type, .. } => match failure_type {
19861986 lightning:: events:: HTLCHandlingFailureType :: Receive { payment_hash } => {
1987- assert_eq ! ( * payment_hash, PaymentHash ( invoice. payment_hash( ) . to_byte_array ( ) ) ) ;
1987+ assert_eq ! ( * payment_hash, invoice. payment_hash( ) ) ;
19881988 } ,
19891989 _ => panic ! ( "Unexpected failure_type: {:?}" , failure_type) ,
19901990 } ,
@@ -2212,7 +2212,7 @@ fn client_trusts_lsp_partial_fee_does_not_trigger_broadcast() {
22122212 . node
22132213 . pay_for_bolt11_invoice (
22142214 & invoice,
2215- PaymentId ( invoice. payment_hash ( ) . to_byte_array ( ) ) ,
2215+ PaymentId ( invoice. payment_hash ( ) . 0 ) ,
22162216 None ,
22172217 Default :: default ( ) ,
22182218 Retry :: Attempts ( 3 ) ,
0 commit comments