@@ -49,6 +49,11 @@ type Bolt11InvoiceDescription = LdkBolt11InvoiceDescription;
4949#[ cfg( feature = "uniffi" ) ]
5050type Bolt11InvoiceDescription = crate :: ffi:: Bolt11InvoiceDescription ;
5151
52+ #[ cfg( not( feature = "uniffi" ) ) ]
53+ type JitChannelManualClaim = ( Bolt11Invoice , PaymentPreimage ) ;
54+ #[ cfg( feature = "uniffi" ) ]
55+ type JitChannelManualClaim = crate :: ffi:: JitChannelManualClaim ;
56+
5257/// A payment handler allowing to create and pay [BOLT 11] invoices.
5358///
5459/// Should be retrieved by calling [`Node::bolt11_payment`].
@@ -602,19 +607,19 @@ impl Bolt11Payment {
602607 pub fn receive_via_jit_channel_manual_claim (
603608 & self , amount_msat : u64 , description : & Bolt11InvoiceDescription , expiry_secs : u32 ,
604609 max_total_lsp_fee_limit_msat : Option < u64 > ,
605- ) -> Result < ( Bolt11Invoice , PaymentPreimage ) , Error > {
610+ ) -> Result < JitChannelManualClaim , Error > {
606611 let description = maybe_try_convert_enum ( description) ?;
607612 let ( invoice, preimage) = self . receive_via_jit_channel_inner (
608613 Some ( amount_msat) ,
609- description,
614+ & description,
610615 expiry_secs,
611616 max_total_lsp_fee_limit_msat,
612617 None ,
613618 None ,
614619 false ,
615620 ) ?;
616621 let preimage = preimage. ok_or ( Error :: InvoiceCreationFailed ) ?;
617- Ok ( ( maybe_wrap ( invoice) , preimage) )
622+ Ok ( ( maybe_wrap ( invoice) , preimage) . into ( ) )
618623 }
619624
620625 /// Returns a payable invoice that can be used to request a variable amount payment (also known
0 commit comments