From 231e48cecb7357b4b636f6c3566b6ec9f0ac05a9 Mon Sep 17 00:00:00 2001 From: Iuri Matias Date: Mon, 18 Jun 2018 11:37:23 -0400 Subject: [PATCH] add todo --- lib/core/config.js | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/core/config.js b/lib/core/config.js index 14b622da6..608d1f580 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());