fix config

This commit is contained in:
Iuri Matias 2018-08-20 14:03:10 -04:00
parent cc7dfbcc60
commit a55ff613bf
1 changed files with 2 additions and 2 deletions

View File

@ -54,11 +54,11 @@ Config.prototype.loadConfigFiles = function(options) {
this.embarkConfig = fs.readJSONSync(options.embarkConfig);
this.embarkConfig.plugins = this.embarkConfig.plugins || {};
this.loadEmbarkConfigFile();
this.plugins = new Plugins({plugins: this.embarkConfig.plugins, logger: this.logger, interceptLogs: interceptLogs, events: this.events, config: this, context: this.context, env: this.env});
this.plugins.loadPlugins();
this.loadEmbarkConfigFile();
this.loadBlockchainConfigFile();
this.loadStorageConfigFile();
this.loadCommunicationConfigFile();
@ -338,7 +338,7 @@ Config.prototype.loadEmbarkConfigFile = function() {
}
};
this.embarkConfig = this._mergeConfig(this.embarkConfig, configObject, true);
this.embarkConfig = utils.recursiveMerge(configObject, this.embarkConfig);
const contracts = this.embarkConfig.contracts;
const newContractsFiles = this.loadFiles(contracts);