Skip to content

Commit 84161a8

Browse files
committed
f
1 parent f4accf9 commit 84161a8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

update

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ dirs.forEach(function (dir) {
3838
// NOTE: should be using this, but it leaks memory
3939
// return solc(require(path.join(__dirname, dir, file))).version()
4040
const filename = path.join(__dirname, dir, file)
41-
return cp.execSync(`/usr/bin/env node -e "console.log(require('${filename}').cwrap('version', 'string', [])())"`).toString().trim()
41+
return cp.execSync(`/usr/bin/env node -e "var solc = require('${filename}'); console.log(solc.cwrap(('_solidity_version' in solc) ? 'solidity_version' : 'version', 'string', [])())"`).toString().trim()
4242
}
4343

4444
// ascending list (oldest version first)

0 commit comments

Comments
 (0)