Skip to content

Commit

Permalink
fix: generateMnemonic
Browse files Browse the repository at this point in the history
  • Loading branch information
heisenberg-2077 committed Dec 18, 2024
1 parent 63c0337 commit 48d7e4d
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
diff --git a/dist/index.js b/dist/index.js
index fd317674caba8bba044ea5fd24c8a67fad859ad8..0a66313a7062e9e478d202c0b0669ce023d5b4f0 100644
index fd317674caba8bba044ea5fd24c8a67fad859ad8..799ca9a154f06d558383e9f2537216d33d418f17 100644
--- a/dist/index.js
+++ b/dist/index.js
@@ -2371,8 +2371,7 @@ __export(eth_hd_keyring_exports, {
Expand All @@ -17,7 +17,7 @@ index fd317674caba8bba044ea5fd24c8a67fad859ad8..0a66313a7062e9e478d202c0b0669ce0
addAccounts(numberOfAccounts = 1) {
if (!this.hdWallet) {
- this.initFromMnemonic(bip39.generateMnemonic(import_english.wordlist));
+ this.initFromMnemonic(bip39.generateMnemonic(bip39.wordlists.english));
+ this.initFromMnemonic(bip39.generateMnemonic());
}
let count = numberOfAccounts;
let currentIdx = 0;
Expand All @@ -26,7 +26,7 @@ index fd317674caba8bba044ea5fd24c8a67fad859ad8..0a66313a7062e9e478d202c0b0669ce0
}
generateMnemonic() {
- return bip39.generateMnemonic(import_english.wordlist);
+ return bip39.generateMnemonic(bip39.wordlists.english);
+ return bip39.generateMnemonic();
}
setHdPath(hdPath = HD_PATH_BASE["BIP44" /* BIP44 */]) {
this.hdPath = hdPath;
Expand Down
4 changes: 2 additions & 2 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -6172,7 +6172,7 @@ __metadata:

"@rabby-wallet/eth-hd-keyring@patch:@rabby-wallet/eth-hd-keyring@npm%3A4.3.1#./.yarn/patches/@rabby-wallet-eth-hd-keyring-npm-4.3.1-a1d8bbe289.patch::locator=%40rabby-wallet%2Fmobile-monorepo%40workspace%3A.":
version: 4.3.1
resolution: "@rabby-wallet/eth-hd-keyring@patch:@rabby-wallet/eth-hd-keyring@npm%3A4.3.1#./.yarn/patches/@rabby-wallet-eth-hd-keyring-npm-4.3.1-a1d8bbe289.patch::version=4.3.1&hash=8efe41&locator=%40rabby-wallet%2Fmobile-monorepo%40workspace%3A."
resolution: "@rabby-wallet/eth-hd-keyring@patch:@rabby-wallet/eth-hd-keyring@npm%3A4.3.1#./.yarn/patches/@rabby-wallet-eth-hd-keyring-npm-4.3.1-a1d8bbe289.patch::version=4.3.1&hash=691efc&locator=%40rabby-wallet%2Fmobile-monorepo%40workspace%3A."
dependencies:
"@ethereumjs/util": ^9.0.0
"@metamask/eth-sig-util": ^4.0.0
Expand All @@ -6181,7 +6181,7 @@ __metadata:
eth-sig-util: ^3.0.1
ethereum-cryptography: ^2.1.2
slip39: ^0.1.9
checksum: b9115887e7802005c85ab806af10687abb170af89978a10d79e37327c30976d837e735396858cf5d40f0bbb5699b91c42f6a10411698129ae1da9ac28d6bea3b
checksum: b12015b3e5e7925dc56811ae3521d4e4b88438208b1dfe3ee6ecd568576ed9261b11516fea064ec229a4bae949621851b3033346f1c92645f518fb92e5999a84
languageName: node
linkType: hard

Expand Down

0 comments on commit 48d7e4d

Please sign in to comment.