very wip working register

This commit is contained in:
Jonathan Rainville 2018-07-12 16:31:00 -04:00 committed by Iuri Matias
parent 2e98f09b34
commit d453eeaeee
3 changed files with 8 additions and 1 deletions

View File

@ -32,6 +32,11 @@ contract FIFSRegistrar {
* @param subnode The hash of the label to register.
* @param owner The address of the new owner.
*/
/*
function register(bytes32 subnode, address owner) public only_owner(subnode) {
ens.setSubnodeOwner(rootNode, subnode, owner);
}
*/
function register(bytes32 subnode, address owner) public only_owner(subnode) {
ens.setSubnodeOwner(rootNode, subnode, owner);
}

View File

@ -172,6 +172,7 @@ __embarkENS.setProvider = function (config) {
})
.catch(err => {
if (err.message.indexOf('Provider not set or invalid') > -1) {
console.log('PROVIDER NOT SET');
console.warn(ERROR_MESSAGE);
return;
}
@ -186,6 +187,7 @@ __embarkENS.resolve = function (name, callback) {
return callback(providerNotSetError);
}
let node = namehash.hash(name);
console.log('NODE TO RESOLVE', node);
function cb(err, addr) {
if (err === NoDecodeAddrError) {

View File

@ -320,7 +320,7 @@ class ENS {
"FIFSRegistrar": {
"deploy": true,
"args": ["$ENSRegistry", rootNode],
"onDeploy": ["ENSRegistry.methods.setOwner(0, FIFSRegistrar.options.address).send()"]
"onDeploy": ["ENSRegistry.methods.setOwner('"+rootNode+"', web3.eth.defaultAccount).send()"]
}
}
},