mirror of https://github.com/embarklabs/embark.git
fix some linting issues and add a few forgotten lines to the config function
Signed-off-by: VoR0220 <catalanor0220@gmail.com>
This commit is contained in:
parent
9cb10c7ce7
commit
8ace5653cd
|
@ -214,8 +214,12 @@ Config.prototype.loadNameSystemConfigFile = function() {
|
|||
"available_providers": ["ens"],
|
||||
"provider": "ens"
|
||||
}
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
let configFilePath = this._getFileOrOject(this.configDir, 'namesystem', 'namesystem');
|
||||
|
||||
this.namesystemConfig = this._mergeConfig(configFilePath, configObject, this.env);
|
||||
};
|
||||
|
||||
Config.prototype.loadCommunicationConfigFile = function() {
|
||||
var configObject = {
|
||||
|
|
|
@ -252,9 +252,10 @@ __embarkENS.registryAddresses = {
|
|||
|
||||
__embarkENS.setProvider = function () {
|
||||
// get network id and then assign ENS contract based on that
|
||||
let registryAddresses = this.registryAddresses;
|
||||
this.ens = web3.eth.net.getId().then(id => {
|
||||
if (registryAddresses[id] !== undefined) {
|
||||
return new web3.eth.Contract(this.registryInterface, this.registryAddresses[id]);
|
||||
return new web3.eth.Contract(this.registryInterface, registryAddresses[id]);
|
||||
}
|
||||
// todo: deploy at this point
|
||||
return undefined;
|
||||
|
|
Loading…
Reference in New Issue