Skip to content

Commit

Permalink
fix: ability to override a subdomain with a domain
Browse files Browse the repository at this point in the history
  • Loading branch information
Th0rgal committed Dec 20, 2023
1 parent 7edd27a commit 116da37
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/naming/asserts.cairo
Original file line number Diff line number Diff line change
Expand Up @@ -99,8 +99,9 @@ impl AssertionsImpl of AssertionsTrait {
contract_address: self.starknetid_contract.read()
}
.get_verifier_data(identity, 'name', get_contract_address(), 0);
let domain_expiry = self._domain_data.read(id_hashed_domain).expiry;
assert(
id_hashed_domain == 0 || self._domain_data.read(id_hashed_domain).expiry < timestamp,
id_hashed_domain == 0 || (domain_expiry != 0 && domain_expiry < timestamp),
'this id holds a domain'
);
}
Expand Down

0 comments on commit 116da37

Please sign in to comment.