Skip to content

Commit c038ceb

Browse files
committed
Use unsigned invoice types in docs
1 parent 19f49af commit c038ceb

File tree

2 files changed

+4
-5
lines changed

2 files changed

+4
-5
lines changed

lightning/src/offers/invoice.rs

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -762,7 +762,6 @@ macro_rules! invoice_accessors { ($self: ident, $contents: expr) => {
762762
}
763763
} }
764764

765-
766765
macro_rules! invoice_accessors_signing_pubkey {
767766
($self: ident, $contents: expr, $invoice_type: ty) =>
768767
{
@@ -785,8 +784,8 @@ macro_rules! invoice_accessors_signing_pubkey {
785784
} }
786785

787786
impl UnsignedBolt12Invoice {
788-
invoice_accessors_common!(self, self.contents, Bolt12Invoice);
789-
invoice_accessors_signing_pubkey!(self, self.contents, Bolt12Invoice);
787+
invoice_accessors_common!(self, self.contents, UnsignedBolt12Invoice);
788+
invoice_accessors_signing_pubkey!(self, self.contents, UnsignedBolt12Invoice);
790789
invoice_accessors!(self, self.contents);
791790
}
792791

lightning/src/offers/static_invoice.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -291,8 +291,8 @@ impl UnsignedStaticInvoice {
291291
Ok(StaticInvoice { bytes: self.bytes, contents: self.contents, signature })
292292
}
293293

294-
invoice_accessors_common!(self, self.contents, StaticInvoice);
295-
invoice_accessors_signing_pubkey!(self, self.contents, StaticInvoice);
294+
invoice_accessors_common!(self, self.contents, UnsignedStaticInvoice);
295+
invoice_accessors_signing_pubkey!(self, self.contents, UnsignedStaticInvoice);
296296
invoice_accessors!(self, self.contents);
297297
}
298298

0 commit comments

Comments
 (0)