Skip to content

Commit

Permalink
fix: rename to auto_renew_altcoin
Browse files Browse the repository at this point in the history
  • Loading branch information
irisdv committed Mar 6, 2024
1 parent 10e091f commit d97e685
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/interface/naming.cairo
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ trait INaming<TContractState> {
sig: (felt252, felt252),
);

fn altcoin_renew_subscription(
fn auto_renew_altcoin(
ref self: TContractState,
domain: felt252,
days: u16,
Expand Down
2 changes: 1 addition & 1 deletion src/naming/main.cairo
Original file line number Diff line number Diff line change
Expand Up @@ -452,7 +452,7 @@ mod Naming {
self.emit(Event::DomainRenewal(DomainRenewal { domain, new_expiry }));
}

fn altcoin_renew_subscription(
fn auto_renew_altcoin(
ref self: ContractState,
domain: felt252,
days: u16,
Expand Down
4 changes: 2 additions & 2 deletions src/tests/naming/test_altcoin.cairo
Original file line number Diff line number Diff line change
Expand Up @@ -386,7 +386,7 @@ fn test_subscription_with_strk() {

// we renew domain through renewal_contract
naming
.altcoin_renew_subscription(
.auto_renew_altcoin(
th0rgal,
365,
ContractAddressZeroable::zero(),
Expand Down Expand Up @@ -423,7 +423,7 @@ fn test_subscription_not_whitelisted() {

// we try to renew domain but we're not whitelisted
naming
.altcoin_renew_subscription(
.auto_renew_altcoin(
th0rgal, 365, ContractAddressZeroable::zero(), 0, 0, strk.contract_address, 1.into()
);
}

0 comments on commit d97e685

Please sign in to comment.