@metamask-previews/keyring-controller 19.2.1-preview-4b0cb25d → 19.2.1-preview-e951f896

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -9,10 +9,6 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
9
9
 
10
10
  ### Changed
11
11
 
12
- - Bump `@metamask/keyring-internal-api` from `^5.0.0` to `^6.0.0` ([#5347](https://github.com/MetaMask/core/pull/5347))
13
- - Bump `@metamask/eth-simple-keyring` from `^9.0.0` to `^10.0.0` ([#5347](https://github.com/MetaMask/core/pull/5347))
14
- - Bump `@metamask/eth-hd-keyring` from `^11.0.0` to `^12.0.0` ([#5347](https://github.com/MetaMask/core/pull/5347))
15
- - Bump `@ethereumjs/util` from `^8.1.0` to `^9.1.0` ([#5347](https://github.com/MetaMask/core/pull/5347))
16
12
  - **BREAKING:** `addNewKeyring` method now returns `Promise<KeyringMetadata>` instead of `Promise<unknown>` ([#5372](https://github.com/MetaMask/core/pull/5372))
17
13
  - Consumers can use the returned `KeyringMetadata.id` to access the created keyring instance via `withKeyring`.
18
14
  - **BREAKING:** `withKeyring` method now requires a callback argument of type `({ keyring: SelectedKeyring; metadata: KeyringMetadata }) => Promise<CallbackResult>` ([#5372](https://github.com/MetaMask/core/pull/5372))
@@ -580,7 +580,7 @@ class KeyringController extends base_controller_1.BaseController {
580
580
  const prefixed = (0, utils_1.add0x)(importedKey);
581
581
  let bufferedPrivateKey;
582
582
  try {
583
- bufferedPrivateKey = (0, utils_1.hexToBytes)(prefixed);
583
+ bufferedPrivateKey = (0, util_1.toBuffer)(prefixed);
584
584
  }
585
585
  catch {
586
586
  throw new Error('Cannot import invalid private key.');