From f3c46340f285935152a28429522089fc7bca7994 Mon Sep 17 00:00:00 2001 From: Thomas Marchand Date: Tue, 22 Aug 2023 15:45:28 +0100 Subject: [PATCH] fix: invalid condition for checking domain ownership --- src/naming/main.cairo | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/naming/main.cairo b/src/naming/main.cairo index af028a0..e4ffed2 100644 --- a/src/naming/main.cairo +++ b/src/naming/main.cairo @@ -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);