add message for failed assert in function addDomain
This commit is contained in:
parent
a4ab4207d2
commit
6b2e95edea
|
@ -69,5 +69,4 @@ const AddDomain = withFormik({
|
|||
}
|
||||
})(InnerForm)
|
||||
|
||||
setTimeout(() => {ENSSubdomainRegistry.methods.controller().call().then(console.log)}, 2000)
|
||||
export default AddDomain;
|
||||
|
|
|
@ -262,8 +262,8 @@ contract ENSSubdomainRegistry is Controlled {
|
|||
external
|
||||
onlyController
|
||||
{
|
||||
require(domains[_domain].state == NodeState.Free);
|
||||
require(ens.owner(_domain) == address(this));
|
||||
require(domains[_domain].state == NodeState.Free, "Domain state is not free");
|
||||
require(ens.owner(_domain) == address(this), "Registry does not own domain");
|
||||
domains[_domain] = Domain(NodeState.Owned, _price);
|
||||
emit DomainPrice(_domain, _price);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue