Merge pull request #6 from embark-framework/bug_fix/undefined_binary

Fix undefined in generated .bin file
This commit is contained in:
Iuri Matias 2018-09-22 10:27:01 -04:00 committed by GitHub
commit 6a85876498
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));
}