}
} }
-
macro_rules! invoice_accessors_signing_pubkey {
($self: ident, $contents: expr, $invoice_type: ty) =>
{
} }
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);
}
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);
}