diff --git a/bin/embark b/bin/embark index 9d545f494..eed4defbb 100755 --- a/bin/embark +++ b/bin/embark @@ -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) { diff --git a/lib/compiler.js b/lib/compiler.js index e03119132..fb378a0b9 100644 --- a/lib/compiler.js +++ b/lib/compiler.js @@ -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); diff --git a/package.json b/package.json index 7ae390b48..0ff5c0782 100644 --- a/package.json +++ b/package.json @@ -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"