We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f4accf9 commit 84161a8Copy full SHA for 84161a8
update
@@ -38,7 +38,7 @@ dirs.forEach(function (dir) {
38
// NOTE: should be using this, but it leaks memory
39
// return solc(require(path.join(__dirname, dir, file))).version()
40
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()
+ 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()
42
}
43
44
// ascending list (oldest version first)
0 commit comments