better suited err msg
This commit is contained in:
parent
5f3ef8842c
commit
67c561dc4a
|
@ -631,7 +631,7 @@ contract UsernameRegistrar is Controlled, ApproveAndCallFallBack {
|
||||||
internal
|
internal
|
||||||
returns(bytes32 namehash)
|
returns(bytes32 namehash)
|
||||||
{
|
{
|
||||||
require(state == RegistrarState.Active, "Registry unavailable.");
|
require(state == RegistrarState.Active, "Registry not active.");
|
||||||
namehash = keccak256(abi.encodePacked(ensNode, _label));
|
namehash = keccak256(abi.encodePacked(ensNode, _label));
|
||||||
require(ensRegistry.owner(namehash) == address(0), "ENS node already owned.");
|
require(ensRegistry.owner(namehash) == address(0), "ENS node already owned.");
|
||||||
require(accounts[_label].creationTime == 0, "Username already registered.");
|
require(accounts[_label].creationTime == 0, "Username already registered.");
|
||||||
|
|
Loading…
Reference in New Issue