Merge pull request #6 from embark-framework/bug_fix/undefined_binary
Fix undefined in generated .bin file
This commit is contained in:
commit
6a85876498
|
@ -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));
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue