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:
VoR0220 2018-05-25 12:52:57 -05:00
parent 9cb10c7ce7
commit 8ace5653cd
2 changed files with 8 additions and 3 deletions

View File

@ -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 = {

View File

@ -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;