mirror of
https://github.com/status-im/embark-area-51.git
synced 2025-02-17 01:37:26 +00:00
remove provider!==ens
This commit is contained in:
parent
95c945c238
commit
a1e2fc057d
@ -18,6 +18,8 @@ class ENS {
|
|||||||
this.namesConfig.enabled !== true ||
|
this.namesConfig.enabled !== true ||
|
||||||
this.namesConfig.available_providers.indexOf('ens') < 0) {
|
this.namesConfig.available_providers.indexOf('ens') < 0) {
|
||||||
return;
|
return;
|
||||||
|
} else if (this.namesConfig.provider !== 'ens') {
|
||||||
|
this.providerNotENS = true;
|
||||||
}
|
}
|
||||||
this.doSetENSProvider = this.namesConfig.provider === 'ens';
|
this.doSetENSProvider = this.namesConfig.provider === 'ens';
|
||||||
|
|
||||||
@ -189,6 +191,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…
x
Reference in New Issue
Block a user