diff --git a/lib/core/engine.js b/lib/core/engine.js index 6122bf8b..856593d5 100644 --- a/lib/core/engine.js +++ b/lib/core/engine.js @@ -79,13 +79,15 @@ Engine.prototype.pipelineService = function(options) { pipeline.build(abi); self.events.emit('outputDone'); }); - this.events.on('file-event', function(fileType, path) { - if (fileType === 'asset') { - self.config.reloadConfig(); - pipeline.build(self.abi, path); - self.events.emit('outputDone'); - } - }); + // TODO: still need to redeploy contracts because the original contracts + // config is being corrupted + //this.events.on('file-event', function(fileType, path) { + // if (fileType === 'asset') { + // self.config.reloadConfig(); + // pipeline.build(self.abi, path); + // self.events.emit('outputDone'); + // } + //}); }; Engine.prototype.abiService = function(options) { @@ -122,10 +124,12 @@ Engine.prototype.deploymentService = function(options) { }); this.events.on('file-event', function(fileType, path) { - if (fileType === 'contract' || fileType === 'config') { + // TODO: for now need to deploy on asset chanes as well + // because the contractsManager config is corrupted after a deploy + //if (fileType === 'contract' || fileType === 'config') { self.config.reloadConfig(); self.deployManager.deployContracts(function() {}); - } + //} }); };