File tree Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -620,13 +620,13 @@ mod tests {
620
620
. build ( )
621
621
. unwrap ( ) ;
622
622
623
- let ( _offer_id, keys_opt) = offer. verify ( & expanded_key, & secp_ctx) . unwrap ( ) ;
624
623
StaticInvoiceBuilder :: for_offer_using_keys (
625
624
& offer,
626
625
payment_paths. clone ( ) ,
627
626
vec ! [ blinded_path( ) ] ,
628
627
now,
629
- keys_opt. unwrap ( ) ,
628
+ & expanded_key,
629
+ & secp_ctx,
630
630
)
631
631
. unwrap ( )
632
632
. build_and_sign ( & secp_ctx)
@@ -960,13 +960,13 @@ mod tests {
960
960
. unwrap ( ) ;
961
961
962
962
const TEST_RELATIVE_EXPIRY : u32 = 3600 ;
963
- let ( _offer_id, keys_opt) = offer. verify ( & expanded_key, & secp_ctx) . unwrap ( ) ;
964
963
let invoice = StaticInvoiceBuilder :: for_offer_using_keys (
965
964
& offer,
966
965
payment_paths. clone ( ) ,
967
966
vec ! [ blinded_path( ) ] ,
968
967
now,
969
- keys_opt. unwrap ( ) ,
968
+ & expanded_key,
969
+ & secp_ctx,
970
970
)
971
971
. unwrap ( )
972
972
. relative_expiry ( TEST_RELATIVE_EXPIRY )
@@ -1000,13 +1000,13 @@ mod tests {
1000
1000
. build ( )
1001
1001
. unwrap ( ) ;
1002
1002
1003
- let ( _offer_id, keys_opt) = offer. verify ( & expanded_key, & secp_ctx) . unwrap ( ) ;
1004
1003
let invoice = StaticInvoiceBuilder :: for_offer_using_keys (
1005
1004
& offer,
1006
1005
payment_paths. clone ( ) ,
1007
1006
vec ! [ blinded_path( ) ] ,
1008
1007
now,
1009
- keys_opt. unwrap ( ) ,
1008
+ & expanded_key,
1009
+ & secp_ctx,
1010
1010
)
1011
1011
. unwrap ( )
1012
1012
. allow_mpp ( )
You can’t perform that action at this time.
0 commit comments