mirror of https://github.com/embarklabs/embark.git
fix solc input
This commit is contained in:
parent
8e9588173c
commit
b78b742ab4
|
@ -31,7 +31,7 @@ var deploy = function(env, embarkConfig, cb) {
|
|||
}
|
||||
|
||||
program
|
||||
.version('1.0.2');
|
||||
.version('1.1.0');
|
||||
|
||||
program.command('new [name]').description('New application').action(function(name) {
|
||||
if (name === undefined) {
|
||||
|
|
|
@ -17,9 +17,8 @@ Compiler.prototype.compile_solidity = function(contractFiles) {
|
|||
var input = {}
|
||||
|
||||
for (var i = 0; i < contractFiles.length; i++){
|
||||
//console.log(contractFiles[i]);
|
||||
//input[contractFiles[i].substring(14)] = fs.readFileSync(contractFiles[i]).toString();
|
||||
input[contractFiles[i].split('/')[3]] = fs.readFileSync(contractFiles[i]).toString();
|
||||
var filename = contractFiles[i].replace('app/contracts/','');
|
||||
input[filename] = fs.readFileSync(contractFiles[i]).toString();
|
||||
}
|
||||
|
||||
var output = solc.compile({sources: input}, 1);
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"name": "embark-framework",
|
||||
"version": "1.0.2",
|
||||
"version": "1.1.0",
|
||||
"description": "",
|
||||
"scripts": {
|
||||
"test": "echo \"Error: no test specified\" && exit 1"
|
||||
|
|
Loading…
Reference in New Issue