mirror of
https://github.com/status-im/ens-usernames.git
synced 2025-03-01 18:40:34 +00:00
better suited err msg
This commit is contained in:
parent
5f3ef8842c
commit
67c561dc4a
@ -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.");
|
||||
|
Loading…
x
Reference in New Issue
Block a user