Merge pull request #932 from embark-framework/bugfix/missing-config

Add missing config
This commit is contained in:
Iuri Matias 2018-09-29 19:28:45 -04:00 committed by GitHub
commit 1aafc132ef
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 1 additions and 2 deletions

View File

@ -197,7 +197,7 @@ class Engine {
this.registerModule('deploytracker', {trackContracts: options.trackContracts});
this.registerModule('specialconfigs');
this.registerModule('console_listener', {ipc: self.ipc});
this.registerModule('contracts_manager');
this.registerModule('contracts_manager', {compileOnceOnly: options.compileOnceOnly});
this.registerModule('deployment', {plugins: this.plugins, onlyCompile: options.onlyCompile});
this.events.on('file-event', function (fileType) {

View File

@ -83,7 +83,6 @@ class ContractsManager {
function compileContracts(callback) {
self.events.emit("status", __("Compiling..."));
if (self.compileOnceOnly && self.compiledContracts && Object.keys(self.compiledContracts).length) {
// Only compile once for tests
return callback();
}
self.events.request("compiler:contracts", self.contractsFiles, compilerOptions, function (err, compiledObject) {