File tree Expand file tree Collapse file tree 1 file changed +5
-1
lines changed
Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -13,6 +13,7 @@ use ldk_node::bitcoin::secp256k1::PublicKey;
1313use ldk_node:: bitcoin:: Amount ;
1414use ldk_node:: lightning:: ln:: msgs:: SocketAddress ;
1515use ldk_node:: { Builder , Event } ;
16+ use lightning_invoice:: { Bolt11InvoiceDescription , Description } ;
1617
1718use clightningrpc:: lightningrpc:: LightningRPC ;
1819use clightningrpc:: responses:: NetworkAddress ;
@@ -107,7 +108,10 @@ fn test_cln() {
107108
108109 // Send a payment to LDK
109110 let rand_label: String = ( 0 ..7 ) . map ( |_| rng. sample ( Alphanumeric ) as char ) . collect ( ) ;
110- let ldk_invoice = node. bolt11_payment ( ) . receive ( 10_000_000 , & rand_label, 3600 ) . unwrap ( ) ;
111+ let invoice_description =
112+ Bolt11InvoiceDescription :: Direct ( Description :: new ( rand_label) . unwrap ( ) ) ;
113+ let ldk_invoice =
114+ node. bolt11_payment ( ) . receive ( 10_000_000 , & invoice_description, 3600 ) . unwrap ( ) ;
111115 cln_client. pay ( & ldk_invoice. to_string ( ) , Default :: default ( ) ) . unwrap ( ) ;
112116 common:: expect_event!( node, PaymentReceived ) ;
113117
You can’t perform that action at this time.
0 commit comments