From 83b58971b32cb0312307001b09f83b36d04c7005 Mon Sep 17 00:00:00 2001 From: Elias Rohrer Date: Wed, 20 Dec 2023 12:13:44 +0100 Subject: [PATCH] Update `README` example to use `Bolt11Invoice` --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 4e7ba42ab..4896c4330 100644 --- a/README.md +++ b/README.md @@ -12,7 +12,7 @@ The primary abstraction of the library is the [`Node`][api_docs_node], which can ```rust use ldk_node::{Builder, Network}; -use ldk_node::lightning_invoice::Invoice; +use ldk_node::lightning_invoice::Bolt11Invoice; use ldk_node::lightning::ln::msgs::SocketAddress; use ldk_node::bitcoin::secp256k1::PublicKey; use std::str::FromStr; @@ -39,7 +39,7 @@ fn main() { println!("EVENT: {:?}", event); node.event_handled(); - let invoice = Invoice::from_str("INVOICE_STR").unwrap(); + let invoice = Bolt11Invoice::from_str("INVOICE_STR").unwrap(); node.send_payment(&invoice).unwrap(); node.stop().unwrap();