diff --git a/lib/compiler.js b/lib/compiler.js index 63919338..31b45e72 100644 --- a/lib/compiler.js +++ b/lib/compiler.js @@ -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"]); }