mirror of https://github.com/embarklabs/embark.git
pre-dploy using the same function as register
This commit is contained in:
parent
2cd11715bb
commit
81557258ce
|
@ -263,3 +263,5 @@ __embarkENS.registerSubDomain = function (name, address, callback) {
|
|||
__embarkENS.isAvailable = function () {
|
||||
return Boolean(this._isAvailable);
|
||||
};
|
||||
|
||||
|
||||
|
|
|
@ -3,11 +3,7 @@ const namehash = require('eth-ens-namehash');
|
|||
// Price of ENS registration contract functions
|
||||
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, callback) {
|
||||
>>>>>>> if no register config, dont register anything
|
||||
const subnode = namehash.hash(subdomain);
|
||||
const rootNode = namehash.hash(rootDomain);
|
||||
const node = namehash.hash(`${subdomain}.${rootDomain}`);
|
||||
|
@ -50,3 +46,5 @@ function registerSubDomain(ens, registrar, resolver, defaultAccount, subdomain,
|
|||
if (typeof module !== 'undefined' && module.exports) {
|
||||
module.exports = registerSubDomain;
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue