fix duplicate require

This commit is contained in:
Ricardo Guilherme Schmidt 2020-09-25 08:30:27 -03:00
parent 1ea9959eac
commit 76f10461fb
No known key found for this signature in database
GPG Key ID: 1FD1630B93893608

View File

@ -291,7 +291,6 @@ contract UsernameRegistrar is Controlled, ApproveAndCallFallBack {
function moveRegistry(UsernameRegistrar _newRegistry)
external
{
require(state == RegistrarState.Active, "Cannot update state of an non active registrar.");
require(address(_newRegistry) != address(this), "Cannot move to self.");
require(state == RegistrarState.Active, "Wrong state");
address newRegistry = ensRegistry.owner(ensNode);