From 0dc21abd3c233323f52d17311d88862e2f0c249a Mon Sep 17 00:00:00 2001 From: Iuri Matias Date: Sat, 25 Feb 2017 23:20:57 -0500 Subject: [PATCH] fix compiler argument --- lib/contracts/compiler.js | 1 - lib/contracts/solcW.js | 2 +- test/compiler.js | 3 +-- 3 files changed, 2 insertions(+), 4 deletions(-) diff --git a/lib/contracts/compiler.js b/lib/contracts/compiler.js index 0069b0082..4f9b1cc2c 100644 --- a/lib/contracts/compiler.js +++ b/lib/contracts/compiler.js @@ -67,7 +67,6 @@ Compiler.prototype.compile_solidity = function(contractFiles, cb) { var filename = contractFiles[i].filename.replace('app/contracts/',''); input[filename] = contractFiles[i].content.toString(); } - console.log(input); callback(); }, function loadCompiler(callback) { diff --git a/lib/contracts/solcW.js b/lib/contracts/solcW.js index a5015c59b..f31f122ef 100644 --- a/lib/contracts/solcW.js +++ b/lib/contracts/solcW.js @@ -28,7 +28,7 @@ SolcW.prototype.compile = function(obj, optimize, done) { } done(msg.output); }); - solcProcess.send({action: 'compile', object: obj, optimize: optimize}); + solcProcess.send({action: 'compile', obj: obj, optimize: optimize}); }; module.exports = SolcW; diff --git a/test/compiler.js b/test/compiler.js index a7066d183..bf93ced19 100644 --- a/test/compiler.js +++ b/test/compiler.js @@ -23,8 +23,7 @@ describe('embark.Compiler', function() { readFile('test/contracts/simple_storage.sol'), readFile('test/contracts/token.sol') ], function(compiledContracts) { - console.log(compiledContracts); - //assert.deepEqual(compiledContracts, expectedObject); + assert.deepEqual(compiledContracts, expectedObject); done(); }); });