Skip to content

Commit

Permalink
use an IIFE but hardcode scrypt
Browse files Browse the repository at this point in the history
  • Loading branch information
ppoliani committed Aug 14, 2019
1 parent e2b04fc commit ca845c6
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 = require('scrypt');
scryptPkg = (function() { return require('scrypt'); })();
} catch (e) {
if (/was compiled against a different/.test(e.message)) {
throw e;
Expand Down

0 comments on commit ca845c6

Please sign in to comment.