From c789ad434e630c0f84740af800a933701e41e633 Mon Sep 17 00:00:00 2001 From: Gabriel Comte Date: Mon, 2 Dec 2024 14:52:32 +0100 Subject: [PATCH] Don't parametrize referral code in deprecated method --- src/lib.rs | 3 +-- src/lipalightninglib.udl | 2 +- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/src/lib.rs b/src/lib.rs index dda53d42..a84c5c5a 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -1065,12 +1065,11 @@ impl LightningNode { pub fn register_fiat_topup( &self, email: Option, - referral: Option, user_iban: String, user_currency: String, ) -> Result { self.fiat_topup - .register(email, referral, user_iban, user_currency) + .register(email, None, user_iban, user_currency) } /// Resets a previous fiat topups registration. diff --git a/src/lipalightninglib.udl b/src/lipalightninglib.udl index ccda936c..459ebe76 100644 --- a/src/lipalightninglib.udl +++ b/src/lipalightninglib.udl @@ -85,7 +85,7 @@ interface LightningNode { TermsAndConditionsStatus get_terms_and_conditions_status(TermsAndConditions terms_and_conditions); [Throws=LnError] - FiatTopupInfo register_fiat_topup(string? email, string? referral_code, string user_iban, string user_currency); + FiatTopupInfo register_fiat_topup(string? email, string user_iban, string user_currency); [Throws=LnError] void reset_fiat_topup();