@@ -76,13 +76,15 @@ Engine.prototype.pipelineService = function(options) {
7676 pipeline . build ( abi ) ;
7777 self . events . emit ( 'outputDone' ) ;
7878 } ) ;
79- this . events . on ( 'file-event' , function ( fileType , path ) {
80- if ( fileType === 'asset' ) {
81- self . config . reloadConfig ( ) ;
82- pipeline . build ( self . abi , path ) ;
83- self . events . emit ( 'outputDone' ) ;
84- }
85- } ) ;
79+ // TODO: still need to redeploy contracts because the original contracts
80+ // config is being corrupted
81+ //this.events.on('file-event', function(fileType, path) {
82+ // if (fileType === 'asset') {
83+ // self.config.reloadConfig();
84+ // pipeline.build(self.abi, path);
85+ // self.events.emit('outputDone');
86+ // }
87+ //});
8688} ;
8789
8890Engine . prototype . abiService = function ( options ) {
@@ -119,10 +121,12 @@ Engine.prototype.deploymentService = function(options) {
119121 } ) ;
120122
121123 this . events . on ( 'file-event' , function ( fileType , path ) {
122- if ( fileType === 'contract' || fileType === 'config' ) {
124+ // TODO: for now need to deploy on asset chanes as well
125+ // because the contractsManager config is corrupted after a deploy
126+ //if (fileType === 'contract' || fileType === 'config') {
123127 self . config . reloadConfig ( ) ;
124128 self . deployManager . deployContracts ( function ( ) { } ) ;
125- }
129+ // }
126130 } ) ;
127131} ;
128132
0 commit comments