Skip to content

Commit

Permalink
fix: invalid condition for checking domain ownership
Browse files Browse the repository at this point in the history
  • Loading branch information
Th0rgal committed Aug 22, 2023
1 parent 518db87 commit f3c4634
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/naming/main.cairo
Original file line number Diff line number Diff line change
Expand Up @@ -302,7 +302,7 @@ mod Naming {
}

// otherwise, if it is a root domain, he doesn't own it
assert(domain.len() != 1 || domain.len() == 0, 'you don\'t own this domain');
assert(domain.len() == 1 || domain.len() == 0, 'you don\'t own this domain');

// if he doesn't own the starknet id, and doesn't own the domain, he might own the parent domain
let parent_key = self._assert_is_owner(domain.slice(1, domain.len()), account);
Expand Down

0 comments on commit f3c4634

Please sign in to comment.