support solc version 1.0
This commit is contained in:
parent
ef97e488f3
commit
1a4bcd168b
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue