Skip to content

Commit

Permalink
fixed tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Ilya committed Aug 19, 2024
1 parent e52293e commit 2e4ac7d
Show file tree
Hide file tree
Showing 6 changed files with 23 additions and 7 deletions.
4 changes: 2 additions & 2 deletions dist/esbuild/main.js

Large diffs are not rendered by default.

6 changes: 3 additions & 3 deletions dist/esbuild/main.js.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/tsc/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@
"argparse": "^2.0.1",
"assert": "^2.0.0",
"atob": "^2.1.2",
"bls-eth-wasm": "^1.0.4",
"bls-eth-wasm": "^1.2.1",
"bls-signatures": "^0.2.5",
"btoa": "^1.2.1",
"class-validator": "^0.14.1",
Expand Down
8 changes: 8 additions & 0 deletions dist/tsc/src/lib/BLS/index.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/tsc/src/lib/BLS/index.js.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 8 additions & 0 deletions src/lib/BLS/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,12 @@ try {
index = require('bls-eth-wasm');
}

let crypto;
try {
crypto = require('crypto');
globalThis.crypto = crypto;
} catch (err) {
console.log('crypto support is disabled!');
}

export default index;

0 comments on commit 2e4ac7d

Please sign in to comment.