diff --git a/lib/core/engine.js b/lib/core/engine.js index 671dc7e50..4724a831b 100644 --- a/lib/core/engine.js +++ b/lib/core/engine.js @@ -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) { diff --git a/lib/modules/contracts_manager/index.js b/lib/modules/contracts_manager/index.js index 5f4023e9b..922e9f40d 100644 --- a/lib/modules/contracts_manager/index.js +++ b/lib/modules/contracts_manager/index.js @@ -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) {