Skip to content

Commit e5fb4c0

Browse files
committed
Use compileStandardWrapper in solcjs
1 parent dde7f3d commit e5fb4c0

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

solcjs

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -51,10 +51,6 @@ function abort (msg) {
5151
}
5252

5353
if (argv['standard-json']) {
54-
if (!solc.supportsStandard) {
55-
abort('Compiler does not support Standard JSON I/O');
56-
}
57-
5854
var size = fs.fstatSync(process.stdin.fd).size;
5955

6056
if (size <= 0) {
@@ -63,7 +59,7 @@ if (argv['standard-json']) {
6359

6460
var input = fs.readSync(process.stdin.fd, size)[0];
6561

66-
console.log(solc.compileStandard(input));
62+
console.log(solc.compileStandardWrapper(input));
6763
process.exit(0);
6864
} else if (files.length === 0) {
6965
console.error('Must provide a file');

0 commit comments

Comments
 (0)