diff --git a/lib/modules/ens/contracts/FIFSRegistrar.sol b/lib/modules/ens/contracts/FIFSRegistrar.sol index 77acbbdf..5412dbe5 100644 --- a/lib/modules/ens/contracts/FIFSRegistrar.sol +++ b/lib/modules/ens/contracts/FIFSRegistrar.sol @@ -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); } diff --git a/lib/modules/ens/embarkjs.js b/lib/modules/ens/embarkjs.js index c4d8346f..684c238e 100644 --- a/lib/modules/ens/embarkjs.js +++ b/lib/modules/ens/embarkjs.js @@ -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) { diff --git a/lib/modules/ens/index.js b/lib/modules/ens/index.js index 93bca4e0..226d26af 100644 --- a/lib/modules/ens/index.js +++ b/lib/modules/ens/index.js @@ -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()"] } } },