Skip to content

Commit 230bb61

Browse files
committed
deprecate persistAllKeyrings
1 parent a8d8588 commit 230bb61

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

packages/keyring-controller/src/KeyringController.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -854,7 +854,7 @@ export class KeyringController extends BaseController<
854854
*
855855
* @deprecated Use of this method is discouraged as actions executed directly on
856856
* keyrings are not being reflected in the KeyringController state and not
857-
* persisted in the vault.
857+
* persisted in the vault. Use `withKeyring` instead.
858858
* @param account - An account address.
859859
* @returns Promise resolving to keyring of the `account` if one exists.
860860
*/
@@ -897,7 +897,7 @@ export class KeyringController extends BaseController<
897897
*
898898
* @deprecated Use of this method is discouraged as actions executed directly on
899899
* keyrings are not being reflected in the KeyringController state and not
900-
* persisted in the vault.
900+
* persisted in the vault. Use `withKeyring` instead.
901901
* @param type - Keyring type name.
902902
* @returns An array of keyrings of the given type.
903903
*/
@@ -908,6 +908,7 @@ export class KeyringController extends BaseController<
908908
/**
909909
* Persist all serialized keyrings in the vault.
910910
*
911+
* @deprecated This method is being phased out in favor of `withKeyring`.
911912
* @returns Promise resolving with `true` value when the
912913
* operation completes.
913914
*/

0 commit comments

Comments
 (0)