Skip to content

Commit 83b5897

Browse files
committed
Update README example to use Bolt11Invoice
1 parent 2878217 commit 83b5897

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)