Skip to content

Commit 8327725

Browse files
committed
fix broken js generation on asset change: (temporarily) revert change to not deploy on asset change and force redeploy of everything
1 parent 48c72ab commit 8327725

File tree

1 file changed

+13
-9
lines changed

1 file changed

+13
-9
lines changed

lib/core/engine.js

Lines changed: 13 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -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

8890
Engine.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

Comments
 (0)