diff --git a/packages/web3-eth-accounts/src/scrypt.js b/packages/web3-eth-accounts/src/scrypt.js index 065125272b7..7824e84dd81 100644 --- a/packages/web3-eth-accounts/src/scrypt.js +++ b/packages/web3-eth-accounts/src/scrypt.js @@ -14,7 +14,7 @@ if (isNode) { return function() { if (scryptPkg !== undefined) { return scryptPkg; } try { - scryptPkg = (function(m) { return require(m); })('scrypt'); + scryptPkg = require('scrypt'); } catch (e) { if (/was compiled against a different/.test(e.message)) { throw e;