Fix undefined in generated .bin file

This commit is contained in:
Richard Ramos 2018-09-21 15:41:22 -04:00 committed by GitHub
parent 2ad9a015fc
commit b0a798c466
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

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