mirror of
https://github.com/embarklabs/embark.git
synced 2025-02-03 09:24:25 +00:00
support solc version 1.0
This commit is contained in:
parent
ef97e488f3
commit
1a4bcd168b
@ -29,8 +29,10 @@ Compiler.prototype.compile_solidity = function(contractFile) {
|
|||||||
output = result.output;
|
output = result.output;
|
||||||
|
|
||||||
if (result.code === 1) {
|
if (result.code === 1) {
|
||||||
|
if (version == '0.1.1' || version == '0.1.0'){
|
||||||
throw new Error(result.output);
|
throw new Error(result.output);
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
json = JSON.parse(output).contracts;
|
json = JSON.parse(output).contracts;
|
||||||
compiled_object = {}
|
compiled_object = {}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user