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/','');
|
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) {
|
||||||
|
|
|
@ -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;
|
||||||
|
|
|
@ -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();
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in New Issue