if no register config, dont register anything

This commit is contained in:
Jonathan Rainville 2018-07-25 13:08:03 -04:00 committed by Pascal Precht
parent 424d375f87
commit 2cd11715bb
No known key found for this signature in database
GPG Key ID: 0EE28D8D6FD85D7D
2 changed files with 6 additions and 0 deletions

View File

@ -410,3 +410,5 @@ class ENS {
} }
module.exports = ENS; module.exports = ENS;

View File

@ -3,7 +3,11 @@ const namehash = require('eth-ens-namehash');
// Price of ENS registration contract functions // Price of ENS registration contract functions
const ENS_GAS_PRICE = 700000; const ENS_GAS_PRICE = 700000;
<<<<<<< HEAD
function registerSubDomain(ens, registrar, resolver, defaultAccount, subdomain, rootDomain, reverseNode, address, logger, secureSend, callback) { function registerSubDomain(ens, registrar, resolver, defaultAccount, subdomain, rootDomain, reverseNode, address, logger, secureSend, callback) {
=======
function registerSubDomain(ens, registrar, resolver, defaultAccount, subdomain, rootDomain, reverseNode, address, callback) {
>>>>>>> if no register config, dont register anything
const subnode = namehash.hash(subdomain); const subnode = namehash.hash(subdomain);
const rootNode = namehash.hash(rootDomain); const rootNode = namehash.hash(rootDomain);
const node = namehash.hash(`${subdomain}.${rootDomain}`); const node = namehash.hash(`${subdomain}.${rootDomain}`);