@metamask-previews/keyring-controller 20.0.0-preview-047d5b0a → 20.0.0-preview-4fbfa93f
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 +4 -0
- package/dist/KeyringController.cjs +1 -1
- package/dist/KeyringController.cjs.map +1 -1
- package/dist/KeyringController.d.cts +2 -2
- package/dist/KeyringController.d.cts.map +1 -1
- package/dist/KeyringController.d.mts +2 -2
- package/dist/KeyringController.d.mts.map +1 -1
- package/dist/KeyringController.mjs +3 -3
- package/dist/KeyringController.mjs.map +1 -1
- package/package.json +8 -8
package/CHANGELOG.md
CHANGED
|
@@ -11,6 +11,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|
|
11
11
|
|
|
12
12
|
### Changed
|
|
13
13
|
|
|
14
|
+
- Bump `@metamask/keyring-internal-api` from `^5.0.0` to `^6.0.0` ([#5347](https://github.com/MetaMask/core/pull/5347))
|
|
15
|
+
- Bump `@metamask/eth-simple-keyring` from `^9.0.0` to `^10.0.0` ([#5347](https://github.com/MetaMask/core/pull/5347))
|
|
16
|
+
- Bump `@metamask/eth-hd-keyring` from `^11.0.0` to `^12.0.0` ([#5347](https://github.com/MetaMask/core/pull/5347))
|
|
17
|
+
- Bump `@ethereumjs/util` from `^8.1.0` to `^9.1.0` ([#5347](https://github.com/MetaMask/core/pull/5347))
|
|
14
18
|
- **BREAKING:** `addNewKeyring` method now returns `Promise<KeyringMetadata>` instead of `Promise<unknown>` ([#5372](https://github.com/MetaMask/core/pull/5372))
|
|
15
19
|
- Consumers can use the returned `KeyringMetadata.id` to access the created keyring instance via `withKeyring`.
|
|
16
20
|
- **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,
|
|
583
|
+
bufferedPrivateKey = (0, utils_1.hexToBytes)(prefixed);
|
|
584
584
|
}
|
|
585
585
|
catch {
|
|
586
586
|
throw new Error('Cannot import invalid private key.');
|