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
|
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) {
|
||||||
|
|
|
@ -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);
|
||||||
|
|
|
@ -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"
|
||||||
|
|
Loading…
Reference in New Issue