Skip to content

Commit 6f2557a

Browse files
committed
fix cln test
1 parent 013e678 commit 6f2557a

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

tests/integration_tests_cln.rs

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ use ldk_node::bitcoin::secp256k1::PublicKey;
1313
use ldk_node::bitcoin::Amount;
1414
use ldk_node::lightning::ln::msgs::SocketAddress;
1515
use ldk_node::{Builder, Event};
16+
use lightning_invoice::{Bolt11InvoiceDescription, Description};
1617

1718
use clightningrpc::lightningrpc::LightningRPC;
1819
use 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

0 commit comments

Comments
 (0)