Skip to content

Commit

Permalink
Add comment for newly added method
Browse files Browse the repository at this point in the history
  • Loading branch information
rickycodes committed Oct 13, 2020
1 parent 383df43 commit 6e7432f
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/keyring/KeyringController.ts
Original file line number Diff line number Diff line change
Expand Up @@ -151,6 +151,11 @@ export class KeyringController extends BaseController<KeyringConfig, KeyringStat
return this.fullUpdate();
}

/**
* Adds a new account to the default (first) HD seed phrase keyring without updating identities in preferences
*
* @returns - Promise resolving to current state when the account is added
*/
async addNewAccountWithoutUpdate(): Promise<KeyringMemState> {
const primaryKeyring = privates.get(this).keyring.getKeyringsByType('HD Key Tree')[0];
/* istanbul ignore if */
Expand Down

0 comments on commit 6e7432f

Please sign in to comment.