mirror of https://github.com/embarklabs/embark.git
get rid of register for now
Signed-off-by: VoR0220 <catalanor0220@gmail.com>
This commit is contained in:
parent
c568b36977
commit
f6fccd4588
|
@ -192,26 +192,3 @@ __embarkENS.lookup = function (address) {
|
||||||
return name;
|
return name;
|
||||||
}).catch(err => err);
|
}).catch(err => err);
|
||||||
};
|
};
|
||||||
|
|
||||||
/*__embarkENS.register = function (name, options) {
|
|
||||||
const self = this;
|
|
||||||
|
|
||||||
if (self.ens === undefined) return;
|
|
||||||
|
|
||||||
if (options.livenet) {
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
|
|
||||||
let node = namehash.hash(name);
|
|
||||||
|
|
||||||
return self.ens.methods.owner(node).call().then((owner) => {
|
|
||||||
if (owner !== "0x" || owner !== undefined) {
|
|
||||||
console.warn("name has already been claimed, see owner: ", owner);
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
return self.ens.methods.setSubnodeOwner(node, );
|
|
||||||
}).then((addr) => {
|
|
||||||
|
|
||||||
return addr;
|
|
||||||
}).catch(err => err);
|
|
||||||
}*/
|
|
||||||
|
|
Loading…
Reference in New Issue