From 078e3240db49943cfcf2ff9e3eba2aa75db030aa Mon Sep 17 00:00:00 2001 From: VoR0220 Date: Tue, 27 Oct 2015 11:54:43 -0500 Subject: [PATCH] Update compiler.js --- lib/compiler.js | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/lib/compiler.js b/lib/compiler.js index 015dc843a..0487db2c4 100644 --- a/lib/compiler.js +++ b/lib/compiler.js @@ -34,7 +34,6 @@ Compiler.prototype.compile_solidity = function(contractFiles) { compiled_object[className].info = {}; compiled_object[className].info.abiDefinition = JSON.parse(contract.interface); } - //console.log(compiled_object); return compiled_object; }; @@ -81,7 +80,6 @@ Compiler.prototype.compile_serpent = function(contractFile) { Compiler.prototype.compile = function(contractFiles) { var solidity = [], serpent = []; - for (var i = 0; i < contractFiles.length; i++) { var extension = contractFiles[i].split('.')[1]; @@ -95,7 +93,7 @@ Compiler.prototype.compile = function(contractFiles) { throw new Error("extension not known, got " + extension); } } - + //TODO: Get these compiling and returning together...problem might come with the JSON objects if (solidity.length > 0) return this.compile_solidity(solidity); if (serpent.length > 0) return this.compile_serpent(serpent); };