Skip to content

Commit 70016bc

Browse files
authored
Merge pull request #317 from ethereum/standard-json-libraries
Fix translating standard JSON with libraries on old compilers
2 parents c7f904b + 76106b8 commit 70016bc

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

wrapper.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -151,13 +151,13 @@ function setupMethods (soljson) {
151151
}
152152
}
153153

154-
function translateOutput (output) {
154+
function translateOutput (output, libraries) {
155155
try {
156156
output = JSON.parse(output);
157157
} catch (e) {
158158
return formatFatalError('Compiler returned invalid JSON: ' + e.message);
159159
}
160-
output = translate.translateJsonCompilerOutput(output);
160+
output = translate.translateJsonCompilerOutput(output, libraries);
161161
if (output == null) {
162162
return formatFatalError('Failed to process output');
163163
}

0 commit comments

Comments
 (0)