diff --git a/src/lib/modules/solidity/solcP.js b/src/lib/modules/solidity/solcP.js index 3a5ed860b..70bc9aa6c 100644 --- a/src/lib/modules/solidity/solcP.js +++ b/src/lib/modules/solidity/solcP.js @@ -67,7 +67,7 @@ class SolcProcess extends ProcessWrapper { if (semver.gte(this.solc.version(), '0.5.0')) { func = this.solc.compile; } - let output = func(JSON.stringify(jsonObj), this.findImports); + let output = func(JSON.stringify(jsonObj), this.findImports.bind(this)); cb(null, output); } catch (err) { cb(err.message);