mirror of
https://github.com/lightningdevkit/rust-lightning.git
synced 2025-02-24 15:02:20 +01:00
Use unsigned invoice types in docs
This commit is contained in:
parent
a466f2e2f4
commit
cfe84305cd
2 changed files with 4 additions and 5 deletions
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue