Skip to content

Commit 91d8cbc

Browse files
committed
chore: move migration logs
1 parent f462720 commit 91d8cbc

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

packages/snap-account-service/src/SnapAccountService.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -375,8 +375,6 @@ export class SnapAccountService {
375375
* safe to call concurrently.
376376
*/
377377
async #migrate(): Promise<void> {
378-
log('Migration started...');
379-
380378
await this.#messenger.call(
381379
'KeyringController:withController',
382380
async (controller) => {
@@ -390,6 +388,8 @@ export class SnapAccountService {
390388
return;
391389
}
392390

391+
log('Migration started...');
392+
393393
// The legacy Snap keyring has never been a true `EthKeyring` so we
394394
// need to cast it to `unknown` first.
395395
const legacySnapKeyring =
@@ -432,10 +432,10 @@ export class SnapAccountService {
432432
// Remove the legacy Snap keyring after migration.
433433
log('Removing legacy Snap keyring...');
434434
await controller.removeKeyring(legacySnapKeyringEntry.metadata.id);
435+
436+
log('Migration completed!');
435437
},
436438
);
437-
438-
log('Migration completed!');
439439
}
440440

441441
/**

0 commit comments

Comments
 (0)