remove restriction on moveRegistry to avoid loss of ens name
This commit is contained in:
parent
043156cc56
commit
16d84233fc
|
@ -336,7 +336,7 @@ contract UsernameRegistrar is Controlled, ApproveAndCallFallBack {
|
||||||
external
|
external
|
||||||
onlyController
|
onlyController
|
||||||
{
|
{
|
||||||
require(state == RegistrarState.Active, "Wrong registry");
|
require(_newRegistry != this, "Cannot move to self.");
|
||||||
require(ensRegistry.owner(ensNode) == address(this), "Registry not owned anymore.");
|
require(ensRegistry.owner(ensNode) == address(this), "Registry not owned anymore.");
|
||||||
state = RegistrarState.Moved;
|
state = RegistrarState.Moved;
|
||||||
ensRegistry.setOwner(ensNode, _newRegistry);
|
ensRegistry.setOwner(ensNode, _newRegistry);
|
||||||
|
|
Loading…
Reference in New Issue