Skip to content

Commit

Permalink
Don't parametrize referral code in deprecated method
Browse files Browse the repository at this point in the history
  • Loading branch information
gcomte committed Dec 2, 2024
1 parent 9d32b50 commit c789ad4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
3 changes: 1 addition & 2 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1065,12 +1065,11 @@ impl LightningNode {
pub fn register_fiat_topup(
&self,
email: Option<String>,
referral: Option<String>,
user_iban: String,
user_currency: String,
) -> Result<FiatTopupInfo> {
self.fiat_topup
.register(email, referral, user_iban, user_currency)
.register(email, None, user_iban, user_currency)
}

/// Resets a previous fiat topups registration.
Expand Down
2 changes: 1 addition & 1 deletion src/lipalightninglib.udl
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down

0 comments on commit c789ad4

Please sign in to comment.