Skip to content

Commit 6a8c9d9

Browse files
authored
Merge pull request #222 from tnull/2023-12-fix-example
Update `README` example to use `Bolt11Invoice`
2 parents 2878217 + 83b5897 commit 6a8c9d9

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ The primary abstraction of the library is the [`Node`][api_docs_node], which can
1212

1313
```rust
1414
use ldk_node::{Builder, Network};
15-
use ldk_node::lightning_invoice::Invoice;
15+
use ldk_node::lightning_invoice::Bolt11Invoice;
1616
use ldk_node::lightning::ln::msgs::SocketAddress;
1717
use ldk_node::bitcoin::secp256k1::PublicKey;
1818
use std::str::FromStr;
@@ -39,7 +39,7 @@ fn main() {
3939
println!("EVENT: {:?}", event);
4040
node.event_handled();
4141

42-
let invoice = Invoice::from_str("INVOICE_STR").unwrap();
42+
let invoice = Bolt11Invoice::from_str("INVOICE_STR").unwrap();
4343
node.send_payment(&invoice).unwrap();
4444

4545
node.stop().unwrap();

0 commit comments

Comments
 (0)