From 48d7e4d4cff1d17f0de4a960536bdbf54d370f30 Mon Sep 17 00:00:00 2001 From: heisenberg Date: Wed, 18 Dec 2024 09:26:42 +0800 Subject: [PATCH] fix: generateMnemonic --- .../@rabby-wallet-eth-hd-keyring-npm-4.3.1-a1d8bbe289.patch | 6 +++--- yarn.lock | 4 ++-- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/.yarn/patches/@rabby-wallet-eth-hd-keyring-npm-4.3.1-a1d8bbe289.patch b/.yarn/patches/@rabby-wallet-eth-hd-keyring-npm-4.3.1-a1d8bbe289.patch index bed9abb15..6312dfd52 100644 --- a/.yarn/patches/@rabby-wallet-eth-hd-keyring-npm-4.3.1-a1d8bbe289.patch +++ b/.yarn/patches/@rabby-wallet-eth-hd-keyring-npm-4.3.1-a1d8bbe289.patch @@ -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, { @@ -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; @@ -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; diff --git a/yarn.lock b/yarn.lock index 10e8df0c1..2d65a3bb1 100644 --- a/yarn.lock +++ b/yarn.lock @@ -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 @@ -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