Skip to content

Commit

Permalink
perhaps?
Browse files Browse the repository at this point in the history
  • Loading branch information
axic committed Sep 27, 2018
1 parent 9f0bc93 commit 307f9c0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions solcjs
Original file line number Diff line number Diff line change
Expand Up @@ -61,8 +61,8 @@ if (argv['standard-json']) {
abort('Empty input was read');
}

var input = Buffer.alloc(size);
fs.readSync(process.stdin.fd, input, 0, size);
// This accepts integer as a parameter, where 0 corresponds to stdin_fileno
var input = fs.readFileSync(0);

console.log(solc.compileStandard(input.toString()));
process.exit(0);
Expand Down

0 comments on commit 307f9c0

Please sign in to comment.