Skip to content

Commit

Permalink
f
Browse files Browse the repository at this point in the history
  • Loading branch information
axic committed Sep 27, 2018
1 parent 307f9c0 commit 2cd5d8e
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions solcjs
Original file line number Diff line number Diff line change
Expand Up @@ -55,16 +55,10 @@ if (argv['standard-json']) {
abort('Compiler does not support Standard JSON I/O');
}

var size = fs.fstatSync(process.stdin.fd).size;

if (size <= 0) {
abort('Empty input was read');
}

// This accepts integer as a parameter, where 0 corresponds to stdin_fileno
var input = fs.readFileSync(0);

console.log(solc.compileStandard(input.toString()));
console.log(solc.compileStandard(input.toString('utf8')));
process.exit(0);
} else if (files.length === 0) {
console.error('Must provide a file');
Expand Down

0 comments on commit 2cd5d8e

Please sign in to comment.