remove restriction on moveRegistry to avoid loss of ens name

This commit is contained in:
Ricardo Guilherme Schmidt 2018-09-06 16:45:33 -03:00
parent 043156cc56
commit 16d84233fc
No known key found for this signature in database
GPG Key ID: 3F95A3AD0B607030
1 changed files with 1 additions and 1 deletions

View File

@ -336,7 +336,7 @@ contract UsernameRegistrar is Controlled, ApproveAndCallFallBack {
external
onlyController
{
require(state == RegistrarState.Active, "Wrong registry");
require(_newRegistry != this, "Cannot move to self.");
require(ensRegistry.owner(ensNode) == address(this), "Registry not owned anymore.");
state = RegistrarState.Moved;
ensRegistry.setOwner(ensNode, _newRegistry);