Skip to content
This repository was archived by the owner on Oct 7, 2024. It is now read-only.
Prev Previous commit
Next Next commit
Remove data type check
  • Loading branch information
gantunesr committed May 12, 2023
commit ac53475836f8b2bbb2729958268715d811ec48bc
5 changes: 1 addition & 4 deletions src/KeyringController.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1030,10 +1030,7 @@ class KeyringController extends EventEmitter {

const keyring = keyringBuilder();

if (!isValidJson(data)) {
throw new Error(KeyringControllerError.DataType);
}

// @ts-expect-error Enforce data type after updating clients
await keyring.deserialize(data);

// @ts-expect-error The method 'init' is not part of the current Keyring type
Expand Down