very wip working register

This commit is contained in:
Jonathan Rainville 2018-07-12 16:31:00 -04:00 committed by Iuri Matias
parent f4a2ad7568
commit d0e14096c3
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

@ -173,6 +173,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;
}
@ -191,6 +192,7 @@ __embarkENS.resolve = function (name, callback) {
}
let node = namehash.hash(name);
console.log('NODE TO RESOLVE', node);
function cb(err, addr) {
if (err === NoDecodeAddrError) {

View File

@ -330,7 +330,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()"]
}
}
},