diff --git a/lib/core/config.js b/lib/core/config.js index 14b622da..608d1f58 100644 --- a/lib/core/config.js +++ b/lib/core/config.js @@ -32,6 +32,7 @@ var Config = function(options) { cb(self.contractsFiles); }); + // TODO: refactor this so reading the file can be done with a normal resolver or something that takes advantage of the plugin api self.events.setCommandHandler("config:contractsFiles:add", (filename) => { self.contractsFiles.push(new File({filename: filename, type: File.types.custom, path: filename, resolver: function(callback) { callback(fs.readFileSync(filename).toString());