@@ -49,6 +49,11 @@ type Bolt11InvoiceDescription = LdkBolt11InvoiceDescription;
49
49
#[ cfg( feature = "uniffi" ) ]
50
50
type Bolt11InvoiceDescription = crate :: ffi:: Bolt11InvoiceDescription ;
51
51
52
+ #[ cfg( not( feature = "uniffi" ) ) ]
53
+ type JitChannelManualClaim = ( Bolt11Invoice , PaymentPreimage ) ;
54
+ #[ cfg( feature = "uniffi" ) ]
55
+ type JitChannelManualClaim = crate :: ffi:: JitChannelManualClaim ;
56
+
52
57
/// A payment handler allowing to create and pay [BOLT 11] invoices.
53
58
///
54
59
/// Should be retrieved by calling [`Node::bolt11_payment`].
@@ -602,19 +607,19 @@ impl Bolt11Payment {
602
607
pub fn receive_via_jit_channel_manual_claim (
603
608
& self , amount_msat : u64 , description : & Bolt11InvoiceDescription , expiry_secs : u32 ,
604
609
max_total_lsp_fee_limit_msat : Option < u64 > ,
605
- ) -> Result < ( Bolt11Invoice , PaymentPreimage ) , Error > {
610
+ ) -> Result < JitChannelManualClaim , Error > {
606
611
let description = maybe_try_convert_enum ( description) ?;
607
612
let ( invoice, preimage) = self . receive_via_jit_channel_inner (
608
613
Some ( amount_msat) ,
609
- description,
614
+ & description,
610
615
expiry_secs,
611
616
max_total_lsp_fee_limit_msat,
612
617
None ,
613
618
None ,
614
619
false ,
615
620
) ?;
616
621
let preimage = preimage. ok_or ( Error :: InvoiceCreationFailed ) ?;
617
- Ok ( ( maybe_wrap ( invoice) , preimage) )
622
+ Ok ( ( maybe_wrap ( invoice) , preimage) . into ( ) )
618
623
}
619
624
620
625
/// Returns a payable invoice that can be used to request a variable amount payment (also known
0 commit comments