mirror of
https://github.com/status-im/embark-area-51.git
synced 2025-02-02 18:34:09 +00:00
only set provider if provider is ENS
This commit is contained in:
parent
a1e2fc057d
commit
5b5628d75c
@ -18,8 +18,6 @@ class ENS {
|
||||
this.namesConfig.enabled !== true ||
|
||||
this.namesConfig.available_providers.indexOf('ens') < 0) {
|
||||
return;
|
||||
} else if (this.namesConfig.provider !== 'ens') {
|
||||
this.providerNotENS = true;
|
||||
}
|
||||
this.doSetENSProvider = this.namesConfig.provider === 'ens';
|
||||
|
||||
@ -191,9 +189,6 @@ class ENS {
|
||||
|
||||
addENSToEmbarkJS() {
|
||||
const self = this;
|
||||
if (self.providerNotENS) {
|
||||
return;
|
||||
}
|
||||
|
||||
// get namehash, import it into file
|
||||
self.events.request("version:get:eth-ens-namehash", function (EnsNamehashVersion) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user