Permalink
Browse files

better suited err msg

  • Loading branch information...
3esmit committed Oct 12, 2018
1 parent e746f5c commit 30ce35c7efe0079d8df286826d4f826f102c818e
Showing with 1 addition and 1 deletion.
  1. +1 −1 contracts/registry/UsernameRegistrar.sol
@@ -631,7 +631,7 @@ contract UsernameRegistrar is Controlled, ApproveAndCallFallBack {
internal
returns(bytes32 namehash)
{
require(state == RegistrarState.Active, "Registry unavailable.");
require(state == RegistrarState.Active, "Registry not active.");
namehash = keccak256(abi.encodePacked(ensNode, _label));
require(ensRegistry.owner(namehash) == address(0), "ENS node already owned.");
require(accounts[_label].creationTime == 0, "Username already registered.");

0 comments on commit 30ce35c

Please sign in to comment.