mirror of
https://github.com/status-im/ens-usernames.git
synced 2025-02-23 15:48:11 +00:00
add check in moveRegistry
This commit is contained in:
parent
b0e75e853b
commit
c8a92c4c57
@ -291,6 +291,7 @@ contract UsernameRegistrar is Controlled, ApproveAndCallFallBack {
|
||||
function moveRegistry()
|
||||
external
|
||||
{
|
||||
require(state == RegistrarState.Active, "Cannot update state of an non active registrar.")
|
||||
require(ensRegistry.owner(ensNode) != address(this), "Cannot move to self.");
|
||||
setState(RegistrarState.Moved);
|
||||
emit RegistryMoved(_newRegistry);
|
||||
|
Loading…
x
Reference in New Issue
Block a user