mirror of
https://github.com/status-im/embark-area-51.git
synced 2025-01-14 17:24:58 +00:00
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…
x
Reference in New Issue
Block a user