upgradability security improve
This commit is contained in:
parent
ed5a699924
commit
695afeac37
|
@ -250,6 +250,7 @@ contract ENSSubdomainRegistry is Controlled {
|
|||
external
|
||||
{
|
||||
require(msg.sender == parentRegistry);
|
||||
require(domains[_domain].state == NodeState.Free);
|
||||
require(ens.owner(_domain) == address(this));
|
||||
domains[_domain] = Domain(NodeState.Owned, _price);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue