Skip to content

Commit 0714cf2

Browse files
refactor: use ethers methods from umbrella
1 parent 162b625 commit 0714cf2

File tree

3 files changed

+1
-6
lines changed

3 files changed

+1
-6
lines changed

package-lock.json

Lines changed: 0 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,8 +46,6 @@
4646
},
4747
"homepage": "https://github.com/iExecBlockchainComputing/web3mail-sdk#readme",
4848
"dependencies": {
49-
"@ethersproject/bytes": "^5.7.0",
50-
"@ethersproject/random": "^5.7.0",
5149
"@iexec/dataprotector": "^2.0.0-beta.21",
5250
"buffer": "^6.0.3",
5351
"ethers": "^6.15.0",

src/utils/generateUniqueId.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
1-
import { randomBytes } from '@ethersproject/random';
2-
import { hexlify } from '@ethersproject/bytes';
1+
import { randomBytes, hexlify } from 'ethers';
32

43
export function generateSecureUniqueId(length) {
54
return hexlify(randomBytes(length));

0 commit comments

Comments
 (0)