Skip to content

Commit

Permalink
require scrypt directly
Browse files Browse the repository at this point in the history
  • Loading branch information
ppoliani committed Aug 14, 2019
1 parent 2d0a3f3 commit e2b04fc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/web3-eth-accounts/src/scrypt.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit e2b04fc

Please sign in to comment.