File tree Expand file tree Collapse file tree
packages/snap-account-service/src Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -323,7 +323,7 @@ export class SnapAccountService {
323323
324324 // We still try to create the keyring for the Snap here, since we might
325325 // want to use a new Snap that never had accounts before.
326- await this . #createKeyringForSnap ( snapId ) ;
326+ await this . #ensureKeyringIsReady ( snapId ) ;
327327
328328 // Before doing anything with our Snap, we need to make sure the platform
329329 // is ready to process requests.
@@ -413,12 +413,12 @@ export class SnapAccountService {
413413 }
414414
415415 /**
416- * Creates a Snap keyring for the given Snap if it doesn't exist yet using
417- * a safe "get or create" pattern. Safe to call concurrently.
416+ * Ensures a Snap keyring is ready for the given Snap. If it doesn't exist yet, it will be created.
417+ * Safe to call concurrently.
418418 *
419- * @param snapId - The Snap ID to create the keyring for.
419+ * @param snapId - The Snap ID to ensure the keyring is ready for.
420420 */
421- async #createKeyringForSnap ( snapId : SnapId ) : Promise < void > {
421+ async #ensureKeyringIsReady ( snapId : SnapId ) : Promise < void > {
422422 await this . #messenger. call (
423423 'KeyringController:withController' ,
424424 async ( controller ) => {
You can’t perform that action at this time.
0 commit comments