fix solc input

This commit is contained in:
Iuri Matias 2016-05-29 15:09:57 -04:00
parent 8e9588173c
commit b78b742ab4
3 changed files with 4 additions and 5 deletions

View File

@ -31,7 +31,7 @@ var deploy = function(env, embarkConfig, cb) {
} }
program program
.version('1.0.2'); .version('1.1.0');
program.command('new [name]').description('New application').action(function(name) { program.command('new [name]').description('New application').action(function(name) {
if (name === undefined) { if (name === undefined) {

View File

@ -17,9 +17,8 @@ Compiler.prototype.compile_solidity = function(contractFiles) {
var input = {} var input = {}
for (var i = 0; i < contractFiles.length; i++){ for (var i = 0; i < contractFiles.length; i++){
//console.log(contractFiles[i]); var filename = contractFiles[i].replace('app/contracts/','');
//input[contractFiles[i].substring(14)] = fs.readFileSync(contractFiles[i]).toString(); input[filename] = fs.readFileSync(contractFiles[i]).toString();
input[contractFiles[i].split('/')[3]] = fs.readFileSync(contractFiles[i]).toString();
} }
var output = solc.compile({sources: input}, 1); var output = solc.compile({sources: input}, 1);

View File

@ -1,6 +1,6 @@
{ {
"name": "embark-framework", "name": "embark-framework",
"version": "1.0.2", "version": "1.1.0",
"description": "", "description": "",
"scripts": { "scripts": {
"test": "echo \"Error: no test specified\" && exit 1" "test": "echo \"Error: no test specified\" && exit 1"