Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: remove unused metadata argument in set_expiry #52

Merged
merged 1 commit into from
May 28, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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 @@ -708,7 +708,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
Loading