From c038ceba526dc1cc26a5a89544359bcc4823e7b4 Mon Sep 17 00:00:00 2001 From: Jeffrey Czyz Date: Thu, 8 Aug 2024 12:36:48 -0500 Subject: [PATCH] Use unsigned invoice types in docs --- lightning/src/offers/invoice.rs | 5 ++--- lightning/src/offers/static_invoice.rs | 4 ++-- 2 files changed, 4 insertions(+), 5 deletions(-) diff --git a/lightning/src/offers/invoice.rs b/lightning/src/offers/invoice.rs index 06765127637..642b90f4d7c 100644 --- a/lightning/src/offers/invoice.rs +++ b/lightning/src/offers/invoice.rs @@ -762,7 +762,6 @@ macro_rules! invoice_accessors { ($self: ident, $contents: expr) => { } } } - macro_rules! invoice_accessors_signing_pubkey { ($self: ident, $contents: expr, $invoice_type: ty) => { @@ -785,8 +784,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); } diff --git a/lightning/src/offers/static_invoice.rs b/lightning/src/offers/static_invoice.rs index 61b6bdab880..a8771a01885 100644 --- a/lightning/src/offers/static_invoice.rs +++ b/lightning/src/offers/static_invoice.rs @@ -291,8 +291,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); }