Skip to content

Commit 231691b

Browse files
committed
Use unsigned invoice types in docs
1 parent 6385ab0 commit 231691b

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
@@ -771,7 +771,6 @@ macro_rules! invoice_accessors { ($self: ident, $contents: expr) => {
771771
}
772772
} }
773773

774-
775774
macro_rules! invoice_accessors_signing_pubkey {
776775
($self: ident, $contents: expr, $invoice_type: ty) =>
777776
{
@@ -794,8 +793,8 @@ macro_rules! invoice_accessors_signing_pubkey {
794793
} }
795794

796795
impl UnsignedBolt12Invoice {
797-
invoice_accessors_common!(self, self.contents, Bolt12Invoice);
798-
invoice_accessors_signing_pubkey!(self, self.contents, Bolt12Invoice);
796+
invoice_accessors_common!(self, self.contents, UnsignedBolt12Invoice);
797+
invoice_accessors_signing_pubkey!(self, self.contents, UnsignedBolt12Invoice);
799798
invoice_accessors!(self, self.contents);
800799
}
801800

lightning/src/offers/static_invoice.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -295,8 +295,8 @@ impl UnsignedStaticInvoice {
295295
Ok(StaticInvoice { bytes: self.bytes, contents: self.contents, signature })
296296
}
297297

298-
invoice_accessors_common!(self, self.contents, StaticInvoice);
299-
invoice_accessors_signing_pubkey!(self, self.contents, StaticInvoice);
298+
invoice_accessors_common!(self, self.contents, UnsignedStaticInvoice);
299+
invoice_accessors_signing_pubkey!(self, self.contents, UnsignedStaticInvoice);
300300
invoice_accessors!(self, self.contents);
301301
}
302302

0 commit comments

Comments
 (0)