remove provider!==ens
This commit is contained in:
parent
73c2ee887d
commit
7eda40742d
|
@ -16,9 +16,10 @@ class ENS {
|
||||||
|
|
||||||
if (this.namesConfig === {} ||
|
if (this.namesConfig === {} ||
|
||||||
this.namesConfig.enabled !== true ||
|
this.namesConfig.enabled !== true ||
|
||||||
this.namesConfig.available_providers.indexOf('ens') < 0 ||
|
this.namesConfig.available_providers.indexOf('ens') < 0) {
|
||||||
this.namesConfig.provider !== 'ens') {
|
|
||||||
return;
|
return;
|
||||||
|
} else if (this.namesConfig.provider !== 'ens') {
|
||||||
|
this.providerNotENS = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
this.addENSToEmbarkJS();
|
this.addENSToEmbarkJS();
|
||||||
|
@ -186,6 +187,9 @@ class ENS {
|
||||||
|
|
||||||
addENSToEmbarkJS() {
|
addENSToEmbarkJS() {
|
||||||
const self = this;
|
const self = this;
|
||||||
|
if (self.providerNotENS) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
// get namehash, import it into file
|
// get namehash, import it into file
|
||||||
self.events.request("version:get:eth-ens-namehash", function (EnsNamehashVersion) {
|
self.events.request("version:get:eth-ens-namehash", function (EnsNamehashVersion) {
|
||||||
|
|
Loading…
Reference in New Issue