mirror of
https://github.com/status-im/ens-usernames.git
synced 2025-01-23 09:00:37 +00:00
upgradability security improve
This commit is contained in:
parent
ed5a699924
commit
695afeac37
@ -250,6 +250,7 @@ contract ENSSubdomainRegistry is Controlled {
|
|||||||
external
|
external
|
||||||
{
|
{
|
||||||
require(msg.sender == parentRegistry);
|
require(msg.sender == parentRegistry);
|
||||||
|
require(domains[_domain].state == NodeState.Free);
|
||||||
require(ens.owner(_domain) == address(this));
|
require(ens.owner(_domain) == address(this));
|
||||||
domains[_domain] = Domain(NodeState.Owned, _price);
|
domains[_domain] = Domain(NodeState.Owned, _price);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user