]> git.bitcoin.ninja Git - rust-lightning/commit
Macro-ize Offer accessors for reuse
authorJeffrey Czyz <jkczyz@gmail.com>
Tue, 15 Aug 2023 12:45:06 +0000 (07:45 -0500)
committerJeffrey Czyz <jkczyz@gmail.com>
Tue, 22 Aug 2023 00:14:28 +0000 (19:14 -0500)
commit66060cae8af6969373bb16b73064b8ea3a7b689a
treece76cd69569077ca8552554c548c41bc6ec73475
parent68d471751b90c210d1664a11b07278fbc1c052d7
Macro-ize Offer accessors for reuse

InvoiceRequest wraps OfferContents, which shouldn't be exposed as it is
an implementation detail. Define a macro for Offer accessor methods so
that InvoiceRequest and UnsignedInvoiceRequest can also define them.
lightning/src/offers/mod.rs
lightning/src/offers/offer.rs