support solc version 1.0

This commit is contained in:
VoR0220 2015-09-16 15:25:50 -05:00
parent ef97e488f3
commit 1a4bcd168b
1 changed files with 3 additions and 1 deletions

View File

@ -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;