mirror of https://github.com/embarklabs/embark.git
get correct compiled code
This commit is contained in:
parent
fd46b0217d
commit
052c2de4b9
|
@ -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"]);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue