get correct compiled code

This commit is contained in:
Iuri Matias 2015-09-14 21:35:44 -04:00
parent fd46b0217d
commit 052c2de4b9
1 changed files with 1 additions and 1 deletions

View File

@ -50,7 +50,7 @@ Compiler.prototype.compile_solidity = function(contractFile) {
var contract = json[className];
compiled_object[className] = {};
compiled_object[className].code = contract.binary;
compiled_object[className].code = contract.binary || contact.bin;
compiled_object[className].info = {};
compiled_object[className].info.abiDefinition = JSON.parse(contract["abi"] || contract["json-abi"]);
}