workaround for abi issues

This commit is contained in:
Iuri Matias 2015-08-31 08:24:09 -04:00
parent 59d42104b0
commit f8ba2acf71
1 changed files with 8 additions and 0 deletions

View File

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