File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -73,8 +73,7 @@ class KeyringController extends EventEmitter {
73
73
* @returns {Promise<Object> } A Promise that resolves to the state.
74
74
*/
75
75
createNewVaultAndKeychain ( password ) {
76
- return this . persistAllKeyrings ( password )
77
- . then ( this . createFirstKeyTree . bind ( this ) )
76
+ return this . createFirstKeyTree ( password )
78
77
. then ( this . persistAllKeyrings . bind ( this , password ) )
79
78
. then ( this . setUnlocked . bind ( this ) )
80
79
. then ( this . fullUpdate . bind ( this ) ) ;
@@ -498,9 +497,11 @@ class KeyringController extends EventEmitter {
498
497
* - Faucets that account on testnet
499
498
* - Puts the current seed words into the state tree
500
499
*
500
+ * @param {string } password - The keyring controller password.
501
501
* @returns {Promise<void> } - A promise that resolves if the operation was successful.
502
502
*/
503
- createFirstKeyTree ( ) {
503
+ createFirstKeyTree ( password ) {
504
+ this . password = password ;
504
505
this . clearKeyrings ( ) ;
505
506
return this . addNewKeyring ( 'HD Key Tree' , { numberOfAccounts : 1 } )
506
507
. then ( ( keyring ) => {
You can’t perform that action at this time.
0 commit comments