From 1a4bcd168b762ebfc112dd515badcc7facc1eb24 Mon Sep 17 00:00:00 2001 From: VoR0220 Date: Wed, 16 Sep 2015 15:25:50 -0500 Subject: [PATCH] support solc version 1.0 --- lib/compiler.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lib/compiler.js b/lib/compiler.js index bcac64e6a..4fc60bf46 100644 --- a/lib/compiler.js +++ b/lib/compiler.js @@ -29,7 +29,9 @@ Compiler.prototype.compile_solidity = function(contractFile) { output = result.output; if (result.code === 1) { - throw new Error(result.output); + if (version == '0.1.1' || version == '0.1.0'){ + throw new Error(result.output); + } } json = JSON.parse(output).contracts;