From 58d09832528947384c415b7c519e072dc29ad6b5 Mon Sep 17 00:00:00 2001 From: Austin Kelsay <53542748+AustinKelsay@users.noreply.github.com> Date: Mon, 3 Jul 2023 15:45:50 -0500 Subject: [PATCH] Update README.md Add missing channel_config argument in README example for connect_open_channel ```pub fn connect_open_channel(&**self**, node_id: PublicKey, address: NetAddress, channel_amount_sats: u64, push_to_counterparty_msat: Option, channel_config: Option, announce_channel: bool) -> Result<(), Error>``` --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 1d52953a4..01a150772 100644 --- a/README.md +++ b/README.md @@ -33,7 +33,7 @@ fn main() { let node_id = PublicKey::from_str("NODE_ID").unwrap(); let node_addr = NetAddress::from_str("IP_ADDR:PORT").unwrap(); - node.connect_open_channel(node_id, node_addr, 10000, None, false).unwrap(); + node.connect_open_channel(node_id, node_addr, 10000, None, None, false).unwrap(); let event = node.wait_next_event(); println!("EVENT: {:?}", event);