mirror of https://github.com/embarklabs/embark.git
workaround for abi issues
This commit is contained in:
parent
59d42104b0
commit
f8ba2acf71
|
@ -69,6 +69,14 @@ Compiler.prototype.compile_serpent = function(contractFile) {
|
||||||
json = JSON.parse(result.output.trim());
|
json = JSON.parse(result.output.trim());
|
||||||
className = contractFile.split('.')[0].split("/").pop();
|
className = contractFile.split('.')[0].split("/").pop();
|
||||||
|
|
||||||
|
for (var i=0; i < json.length; i++) {
|
||||||
|
var elem = json[i];
|
||||||
|
|
||||||
|
if (elem.outputs.length > 0) {
|
||||||
|
elem.constant = true;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
compiled_object = {}
|
compiled_object = {}
|
||||||
compiled_object[className] = {};
|
compiled_object[className] = {};
|
||||||
compiled_object[className].code = code.trim();
|
compiled_object[className].code = code.trim();
|
||||||
|
|
Loading…
Reference in New Issue