Skip to content

Commit

Permalink
Use unsigned invoice types in docs
Browse files Browse the repository at this point in the history
  • Loading branch information
jkczyz committed Aug 14, 2024
1 parent cca69f1 commit 03c260d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
5 changes: 2 additions & 3 deletions lightning/src/offers/invoice.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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) =>
{
Expand All @@ -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);
}

Expand Down
4 changes: 2 additions & 2 deletions lightning/src/offers/static_invoice.rs
Original file line number Diff line number Diff line change
Expand Up @@ -293,8 +293,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);
}

Expand Down

0 comments on commit 03c260d

Please sign in to comment.