From 16d84233fc7a8f76354b0f3cecdd4c868b38da6f Mon Sep 17 00:00:00 2001 From: Ricardo Guilherme Schmidt <3esmit@gmail.com> Date: Thu, 6 Sep 2018 16:45:33 -0300 Subject: [PATCH] remove restriction on moveRegistry to avoid loss of ens name --- contracts/registry/UsernameRegistrar.sol | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/contracts/registry/UsernameRegistrar.sol b/contracts/registry/UsernameRegistrar.sol index c67701d..e307e4a 100644 --- a/contracts/registry/UsernameRegistrar.sol +++ b/contracts/registry/UsernameRegistrar.sol @@ -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);