]> git.bitcoin.ninja Git - rust-lightning/commitdiff
Use unsigned invoice types in docs
authorJeffrey Czyz <jkczyz@gmail.com>
Thu, 8 Aug 2024 17:36:48 +0000 (12:36 -0500)
committerJeffrey Czyz <jkczyz@gmail.com>
Mon, 16 Sep 2024 18:56:46 +0000 (13:56 -0500)
lightning/src/offers/invoice.rs
lightning/src/offers/static_invoice.rs

index eae1c14dc63524becb2ad37305861645a95820ba..fb660c4800894256673cae10c1a007182f406289 100644 (file)
@@ -771,7 +771,6 @@ macro_rules! invoice_accessors { ($self: ident, $contents: expr) => {
        }
 } }
 
-
 macro_rules! invoice_accessors_signing_pubkey {
        ($self: ident, $contents: expr, $invoice_type: ty) =>
 {
@@ -794,8 +793,8 @@ macro_rules! invoice_accessors_signing_pubkey {
 } }
 
 impl UnsignedBolt12Invoice {
-       invoice_accessors_common!(self, self.contents, Bolt12Invoice);
-       invoice_accessors_signing_pubkey!(self, self.contents, Bolt12Invoice);
+       invoice_accessors_common!(self, self.contents, UnsignedBolt12Invoice);
+       invoice_accessors_signing_pubkey!(self, self.contents, UnsignedBolt12Invoice);
        invoice_accessors!(self, self.contents);
 }
 
index 81fc8bc3b053147f21c080dcbec2e57e96d56b23..bf88bd9446cc6d3b45956363508e9f123b8dcc9c 100644 (file)
@@ -295,8 +295,8 @@ impl UnsignedStaticInvoice {
                Ok(StaticInvoice { bytes: self.bytes, contents: self.contents, signature })
        }
 
-       invoice_accessors_common!(self, self.contents, StaticInvoice);
-       invoice_accessors_signing_pubkey!(self, self.contents, StaticInvoice);
+       invoice_accessors_common!(self, self.contents, UnsignedStaticInvoice);
+       invoice_accessors_signing_pubkey!(self, self.contents, UnsignedStaticInvoice);
        invoice_accessors!(self, self.contents);
 }