fix compiler argument

This commit is contained in:
Iuri Matias 2017-02-25 23:20:57 -05:00
parent 562efc6f14
commit 0dc21abd3c
3 changed files with 2 additions and 4 deletions

View File

@ -67,7 +67,6 @@ Compiler.prototype.compile_solidity = function(contractFiles, cb) {
var filename = contractFiles[i].filename.replace('app/contracts/',''); var filename = contractFiles[i].filename.replace('app/contracts/','');
input[filename] = contractFiles[i].content.toString(); input[filename] = contractFiles[i].content.toString();
} }
console.log(input);
callback(); callback();
}, },
function loadCompiler(callback) { function loadCompiler(callback) {

View File

@ -28,7 +28,7 @@ SolcW.prototype.compile = function(obj, optimize, done) {
} }
done(msg.output); done(msg.output);
}); });
solcProcess.send({action: 'compile', object: obj, optimize: optimize}); solcProcess.send({action: 'compile', obj: obj, optimize: optimize});
}; };
module.exports = SolcW; module.exports = SolcW;

View File

@ -23,8 +23,7 @@ describe('embark.Compiler', function() {
readFile('test/contracts/simple_storage.sol'), readFile('test/contracts/simple_storage.sol'),
readFile('test/contracts/token.sol') readFile('test/contracts/token.sol')
], function(compiledContracts) { ], function(compiledContracts) {
console.log(compiledContracts); assert.deepEqual(compiledContracts, expectedObject);
//assert.deepEqual(compiledContracts, expectedObject);
done(); done();
}); });
}); });