mirror of
https://github.com/status-im/embark-area-51.git
synced 2025-01-11 06:25:57 +00:00
fix compiler argument
This commit is contained in:
parent
562efc6f14
commit
0dc21abd3c
@ -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) {
|
||||
|
@ -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;
|
||||
|
@ -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();
|
||||
});
|
||||
});
|
||||
|
Loading…
x
Reference in New Issue
Block a user