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)); }