Skip to content

Commit f8c9b09

Browse files
committed
Qualify the BOLT 12 invoice type
To avoid a naming conflict in bindings with BOLT 11 invoices, qualify the BOLT 12 invoice type.
1 parent 3e50011 commit f8c9b09

File tree

8 files changed

+125
-125
lines changed

8 files changed

+125
-125
lines changed

fuzz/src/invoice_deser.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,13 +8,13 @@
88
// licenses.
99

1010
use crate::utils::test_logger;
11-
use lightning::offers::invoice::Invoice;
11+
use lightning::offers::invoice::Bolt12Invoice;
1212
use lightning::util::ser::Writeable;
1313
use std::convert::TryFrom;
1414

1515
#[inline]
1616
pub fn do_test<Out: test_logger::Output>(data: &[u8], _out: Out) {
17-
if let Ok(invoice) = Invoice::try_from(data.to_vec()) {
17+
if let Ok(invoice) = Bolt12Invoice::try_from(data.to_vec()) {
1818
let mut bytes = Vec::with_capacity(data.len());
1919
invoice.write(&mut bytes).unwrap();
2020
assert_eq!(data, bytes);

0 commit comments

Comments
 (0)