Skip to content

Commit

Permalink
Merge pull request #52 from starknet-id/fix/unused_variable_in_set_ex…
Browse files Browse the repository at this point in the history
…piry

fix: remove unused metadata argument in set_expiry
  • Loading branch information
Th0rgal authored May 28, 2024
2 parents 870dd63 + 109f9cc commit ae4f0f9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/interface/naming.cairo
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ trait INaming<TContractState> {
// admin
fn set_admin(ref self: TContractState, new_admin: ContractAddress);

fn set_expiry(ref self: TContractState, root_domain: felt252, expiry: u64, metadata: felt252);
fn set_expiry(ref self: TContractState, root_domain: felt252, expiry: u64);

fn claim_balance(ref self: TContractState, erc20: ContractAddress);

Expand Down
2 changes: 1 addition & 1 deletion src/naming/main.cairo
Original file line number Diff line number Diff line change
Expand Up @@ -703,7 +703,7 @@ mod Naming {
}

fn set_expiry(
ref self: ContractState, root_domain: felt252, expiry: u64, metadata: felt252
ref self: ContractState, root_domain: felt252, expiry: u64
) {
assert(get_caller_address() == self._admin_address.read(), 'you are not admin');
let hashed_domain = self.hash_domain(array![root_domain].span());
Expand Down

0 comments on commit ae4f0f9

Please sign in to comment.