From b0a798c466ff3149eaa02f81867b9a4c7ec83240 Mon Sep 17 00:00:00 2001 From: Richard Ramos Date: Fri, 21 Sep 2018 15:41:22 -0400 Subject: [PATCH] Fix undefined in generated .bin file --- lib/Compiler.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/Compiler.js b/lib/Compiler.js index e7da580..3095553 100644 --- a/lib/Compiler.js +++ b/lib/Compiler.js @@ -83,7 +83,7 @@ function compileSolc(embark, contractFiles, cb) { if(outputBinary){ embark.events.on("outputDone", function() { Object.keys(compiled_object).map(function(className, index) { - fs.writeFile(path.join(outputDir, className + ".bin"), compiled_object[className].bin, (err) => { + fs.writeFile(path.join(outputDir, className + ".bin"), compiled_object[className].code, (err) => { if (err) { logger.error("Error writing binary file: " + JSON.stringify(err)); }