@@ -87,7 +87,6 @@ class KeyringController extends EventEmitter {
8787 this . password = password ;
8888
8989 await this . createFirstKeyTree ( ) ;
90- await this . persistAllKeyrings ( ) ;
9190 this . setUnlocked ( ) ;
9291 this . fullUpdate ( ) ;
9392 }
@@ -127,7 +126,6 @@ class KeyringController extends EventEmitter {
127126 this . password = password ;
128127
129128 this . clearKeyrings ( ) ;
130-
131129 const firstKeyring = await this . addNewKeyring (
132130 KEYRINGS_TYPE_MAP . HD_KEYRING ,
133131 {
@@ -139,8 +137,6 @@ class KeyringController extends EventEmitter {
139137 if ( ! firstAccount ) {
140138 throw new Error ( 'KeyringController - First Account not found.' ) ;
141139 }
142-
143- await this . persistAllKeyrings ( ) ;
144140 this . setUnlocked ( ) ;
145141 return this . fullUpdate ( ) ;
146142 }
@@ -515,7 +511,6 @@ class KeyringController extends EventEmitter {
515511 * - Faucets that account on testnet
516512 * - Puts the current seed words into the state tree
517513 *
518- * @param {string } password - The keyring controller password.
519514 * @returns {Promise<void> } - A promise that resolves if the operation was successful.
520515 */
521516 async createFirstKeyTree ( ) {
@@ -847,7 +842,7 @@ class KeyringController extends EventEmitter {
847842 forgetKeyring ( keyring ) {
848843 if ( keyring . forgetDevice ) {
849844 keyring . forgetDevice ( ) ;
850- this . persistAllKeyrings . bind ( this ) ( ) ;
845+ this . persistAllKeyrings ( ) ;
851846 this . _updateMemStoreKeyrings . bind ( this ) ( ) ;
852847 } else {
853848 throw new Error (
0 commit comments