Skip to content

Commit f987c9b

Browse files
committed
f - drop $secp_context
1 parent 27b178e commit f987c9b

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

lightning/src/offers/invoice.rs

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -221,9 +221,7 @@ macro_rules! invoice_explicit_signing_pubkey_builder_methods { ($self: ident, $s
221221
}
222222
} }
223223

224-
macro_rules! invoice_derived_signing_pubkey_builder_methods { (
225-
$self: ident, $self_type: ty, $secp_context: ty
226-
) => {
224+
macro_rules! invoice_derived_signing_pubkey_builder_methods { ($self: ident, $self_type: ty) => {
227225
pub(super) fn for_offer_using_keys(
228226
invoice_request: &'a InvoiceRequest, payment_paths: Vec<(BlindedPayInfo, BlindedPath)>,
229227
created_at: Duration, payment_hash: PaymentHash, keys: KeyPair
@@ -258,7 +256,7 @@ macro_rules! invoice_derived_signing_pubkey_builder_methods { (
258256

259257
/// Builds a signed [`Bolt12Invoice`] after checking for valid semantics.
260258
pub fn build_and_sign<T: secp256k1::Signing>(
261-
$self: $self_type, secp_ctx: &Secp256k1<$secp_context>
259+
$self: $self_type, secp_ctx: &Secp256k1<T>
262260
) -> Result<Bolt12Invoice, Bolt12SemanticError> {
263261
#[cfg(feature = "std")] {
264262
if $self.invoice.is_offer_or_refund_expired() {
@@ -388,7 +386,7 @@ impl<'a> InvoiceBuilder<'a, ExplicitSigningPubkey> {
388386
}
389387

390388
impl<'a> InvoiceBuilder<'a, DerivedSigningPubkey> {
391-
invoice_derived_signing_pubkey_builder_methods!(self, Self, T);
389+
invoice_derived_signing_pubkey_builder_methods!(self, Self);
392390
}
393391

394392
impl<'a, S: SigningPubkeyStrategy> InvoiceBuilder<'a, S> {

0 commit comments

Comments
 (0)