Skip to content

Commit

Permalink
Merge pull request #28 from starknet-id/ref/revert_changes_token_to_id
Browse files Browse the repository at this point in the history
ref: revert change to domain_to_id
  • Loading branch information
Th0rgal authored Apr 15, 2024
2 parents 5feac34 + 90e5070 commit af10ada
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions src/naming/main.cairo
Original file line number Diff line number Diff line change
Expand Up @@ -216,9 +216,6 @@ mod Naming {
// This returns the identity (StarknetID) owning the domain
fn domain_to_id(self: @ContractState, domain: Span<felt252>) -> u128 {
let data = self._domain_data.read(self.hash_domain(domain));
if domain.len() == 0 {
return 0;
};
if domain.len() != 1 {
let parent_key = self
._domain_data
Expand Down

0 comments on commit af10ada

Please sign in to comment.