Skip to content

Commit 656a40e

Browse files
committed
Remove legacy use of compileStandardWrapper in solcjs
1 parent 251e99f commit 656a40e

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

solcjs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -35,12 +35,12 @@ function abort (msg) {
3535

3636
if (program.standardJson) {
3737
var input = fs.readFileSync(process.stdin.fd).toString('utf8');
38-
var output = solc.compileStandardWrapper(input);
38+
var output = solc.compile(input);
3939

4040
try {
4141
var inputJSON = smtchecker.handleSMTQueries(JSON.parse(input), JSON.parse(output), smtsolver.smtSolver);
4242
if (inputJSON) {
43-
output = solc.compileStandardWrapper(JSON.stringify(inputJSON));
43+
output = solc.compile(JSON.stringify(inputJSON));
4444
}
4545
}
4646
catch (e) {
@@ -80,7 +80,7 @@ for (var i = 0; i < files.length; i++) {
8080
}
8181
}
8282

83-
var output = JSON.parse(solc.compileStandardWrapper(JSON.stringify({
83+
var output = JSON.parse(solc.compile(JSON.stringify({
8484
language: 'Solidity',
8585
settings: {
8686
optimizer: {

test/compiler.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -583,7 +583,6 @@ function runTests (solc, versionText) {
583583

584584
t.test('compiling standard JSON (multiple sources on old compiler)', function (st) {
585585
var output = JSON.parse(solc.compile('{"language":"Solidity","sources":{"cont.sol":{"content":"import \\"lib.sol\\";"},"lib.sol":{"content":""}}}'));
586-
console.log(output);
587586
if (solc.features.multipleInputs) {
588587
st.ok(expectNoError(output));
589588
} else {

0 commit comments

Comments
 (0)