Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
better suited err msg
- Loading branch information
Showing
with
1 addition
and
1 deletion.
-
+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."); |
|
|
You can’t perform that action at this time.
You signed in with another tab or window. Reload to refresh your session.
You signed out in another tab or window. Reload to refresh your session.