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 @@ -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 /**
You can’t perform that action at this time.
0 commit comments