-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'feat/up' into tmp/20241220
- Loading branch information
Showing
15 changed files
with
213 additions
and
59 deletions.
There are no files selected for viewing
41 changes: 41 additions & 0 deletions
41
.yarn/patches/@rabby-wallet-eth-hd-keyring-npm-4.3.1-a1d8bbe289.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
diff --git a/dist/index.js b/dist/index.js | ||
index fd317674caba8bba044ea5fd24c8a67fad859ad8..799ca9a154f06d558383e9f2537216d33d418f17 100644 | ||
--- a/dist/index.js | ||
+++ b/dist/index.js | ||
@@ -2371,8 +2371,7 @@ __export(eth_hd_keyring_exports, { | ||
module.exports = __toCommonJS(eth_hd_keyring_exports); | ||
var import_hdkey = require("ethereum-cryptography/hdkey"); | ||
var import_eth_simple_keyring = __toESM(require("@rabby-wallet/eth-simple-keyring")); | ||
-var bip39 = __toESM(require("@scure/bip39")); | ||
-var import_english = require("@scure/bip39/wordlists/english"); | ||
+var bip39 = __toESM(require("react-native-quick-bip39")); | ||
var sigUtil = __toESM(require("eth-sig-util")); | ||
var import_util = require("@ethereumjs/util"); | ||
var import_slip39 = __toESM(require_slip392()); | ||
@@ -2469,7 +2468,7 @@ var _HdKeyring = class _HdKeyring extends import_eth_simple_keyring.default { | ||
} | ||
addAccounts(numberOfAccounts = 1) { | ||
if (!this.hdWallet) { | ||
- this.initFromMnemonic(bip39.generateMnemonic(import_english.wordlist)); | ||
+ this.initFromMnemonic(bip39.generateMnemonic()); | ||
} | ||
let count = numberOfAccounts; | ||
let currentIdx = 0; | ||
@@ -2612,7 +2611,7 @@ var _HdKeyring = class _HdKeyring extends import_eth_simple_keyring.default { | ||
return (0, import_util.bytesToHex)((0, import_util.publicToAddress)(publicKey, true)).toLowerCase(); | ||
} | ||
generateMnemonic() { | ||
- return bip39.generateMnemonic(import_english.wordlist); | ||
+ return bip39.generateMnemonic(); | ||
} | ||
setHdPath(hdPath = HD_PATH_BASE["BIP44" /* BIP44 */]) { | ||
this.hdPath = hdPath; | ||
@@ -2690,7 +2689,7 @@ var _HdKeyring = class _HdKeyring extends import_eth_simple_keyring.default { | ||
if (this.checkMnemonicIsSlip39(mnemonic)) { | ||
return true; | ||
} | ||
- return bip39.validateMnemonic(mnemonic, import_english.wordlist); | ||
+ return bip39.validateMnemonic(mnemonic, bip39.wordlists.english); | ||
} | ||
}; | ||
_HdKeyring.type = type; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.