Skip to content

Commit 9c3483a

Browse files
authored
bump eth-keyring-controller to v7.0.2 (#819)
* bump eth-keyring-controller to v7.0.2 * update seed argument type for createNewVaultAndRestore to string or array of numbers
1 parent f685920 commit 9c3483a

File tree

3 files changed

+10
-19
lines changed

3 files changed

+10
-19
lines changed

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@
4848
"deep-freeze-strict": "^1.1.1",
4949
"eth-ens-namehash": "^2.0.8",
5050
"eth-json-rpc-infura": "^5.1.0",
51-
"eth-keyring-controller": "^7.0.1",
51+
"eth-keyring-controller": "^7.0.2",
5252
"eth-method-registry": "1.1.0",
5353
"eth-phishing-detect": "^1.1.16",
5454
"eth-query": "^2.1.2",

src/keyring/KeyringController.ts

+4-3
Original file line numberDiff line numberDiff line change
@@ -240,10 +240,11 @@ export class KeyringController extends BaseController<
240240
* using the given seed phrase.
241241
*
242242
* @param password - Password to unlock keychain.
243-
* @param seed - Seed phrase to restore keychain.
244-
* @returns Promise resolving to th restored keychain object.
243+
* @param seed - A BIP39-compliant seed phrase,
244+
* either as a string or an array of UTF-8 bytes that represent the string.
245+
* @returns Promise resolving to the restored keychain object.
245246
*/
246-
async createNewVaultAndRestore(password: string, seed: string) {
247+
async createNewVaultAndRestore(password: string, seed: string | number[]) {
247248
const releaseLock = await this.mutex.acquire();
248249
if (!password || !password.length) {
249250
throw new Error('Invalid password');

yarn.lock

+5-15
Original file line numberDiff line numberDiff line change
@@ -2166,16 +2166,6 @@ bindings@^1.2.1, bindings@^1.5.0:
21662166
dependencies:
21672167
file-uri-to-path "1.0.0"
21682168

2169-
bip39@^3.0.4:
2170-
version "3.0.4"
2171-
resolved "https://registry.yarnpkg.com/bip39/-/bip39-3.0.4.tgz#5b11fed966840b5e1b8539f0f54ab6392969b2a0"
2172-
integrity sha512-YZKQlb752TrUWqHWj7XAwCSjYEgGAk+/Aas3V7NyjQeZYsztO8JnQUaCWhcnL4T+jL8nvB8typ2jRPzTlgugNw==
2173-
dependencies:
2174-
"@types/node" "11.11.6"
2175-
create-hash "^1.1.0"
2176-
pbkdf2 "^3.0.9"
2177-
randombytes "^2.0.1"
2178-
21792169
bip66@^1.1.5:
21802170
version "1.1.5"
21812171
resolved "https://registry.yarnpkg.com/bip66/-/bip66-1.1.5.tgz#01fa8748785ca70955d5011217d1b3139969ca22"
@@ -3373,13 +3363,13 @@ eth-json-rpc-middleware@^6.0.0:
33733363
pify "^3.0.0"
33743364
safe-event-emitter "^1.0.1"
33753365

3376-
eth-keyring-controller@^7.0.1:
3377-
version "7.0.1"
3378-
resolved "https://registry.yarnpkg.com/eth-keyring-controller/-/eth-keyring-controller-7.0.1.tgz#7dd959ea6d6dca0be27f732ad08c650ba327cab3"
3379-
integrity sha512-mD+MUwGuMStowINfen860SFhCAOm62JpEAbLM4hnD27P/sOEWkxZMjlf7S6j12YziGwX6WAO07k7Hk2hgAhcfQ==
3366+
eth-keyring-controller@^7.0.2:
3367+
version "7.0.2"
3368+
resolved "https://registry.yarnpkg.com/eth-keyring-controller/-/eth-keyring-controller-7.0.2.tgz#c4d7f9be179f08b3bb18410066bc4c8e91f50552"
3369+
integrity sha512-U4bqbXkTn7js/47rnFtVyBYQcvOKtmraD/YReBwuy4R56bFSJN8kinP0JJRl3WTtVfVS1l5A/jjsF3qk5TaTeg==
33803370
dependencies:
3371+
"@metamask/bip39" "^4.0.0"
33813372
"@metamask/eth-hd-keyring" "^4.0.2"
3382-
bip39 "^3.0.4"
33833373
browser-passworder "^2.0.3"
33843374
eth-sig-util "^3.0.1"
33853375
eth-simple-keyring "^4.2.0"

0 commit comments

Comments
 (0)