From 2e5cd04797936454bff4febc31b183a71188ccea Mon Sep 17 00:00:00 2001 From: bluezdot <72647326+bluezdot@users.noreply.github.com> Date: Tue, 24 Dec 2024 17:53:11 +0700 Subject: [PATCH] [Issue-3926] refactor: refactor interface param name --- packages/extension-base/src/background/KoniTypes.ts | 4 ++-- .../extension-base/src/koni/background/handlers/Extension.ts | 4 ++-- .../extension-base/src/services/setting-service/constants.ts | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/packages/extension-base/src/background/KoniTypes.ts b/packages/extension-base/src/background/KoniTypes.ts index 8552d41f12..39a82be803 100644 --- a/packages/extension-base/src/background/KoniTypes.ts +++ b/packages/extension-base/src/background/KoniTypes.ts @@ -425,7 +425,7 @@ export interface UiSettings { unlockType: WalletUnlockType; enableChainPatrol: boolean; notificationSetup: NotificationSetup; - isAcknowledgedMigration: boolean; // todo: can refactor to: isAcknowledgedUnifiedAccountMigration + isAcknowledgedUnifiedAccountMigration: boolean; // On-ramp service account reference walletReference: string; } @@ -1922,7 +1922,7 @@ export interface ResponseNftImport { /* Migrate Unified Account */ export interface RequestSaveMigrationAcknowledgedStatus { - isAcknowledgedMigration: boolean; + isAcknowledgedUnifiedAccountMigration: boolean; } export interface RequestMigrateUnifiedAndFetchEligibleSoloAccounts { diff --git a/packages/extension-base/src/koni/background/handlers/Extension.ts b/packages/extension-base/src/koni/background/handlers/Extension.ts index 70e755eff2..b60fc98985 100644 --- a/packages/extension-base/src/koni/background/handlers/Extension.ts +++ b/packages/extension-base/src/koni/background/handlers/Extension.ts @@ -911,8 +911,8 @@ export default class KoniExtension { return true; } - private saveMigrationAcknowledgedStatus ({ isAcknowledgedMigration }: RequestSaveMigrationAcknowledgedStatus) { - this.#koniState.updateSetting('isAcknowledgedMigration', isAcknowledgedMigration); + private saveMigrationAcknowledgedStatus ({ isAcknowledgedUnifiedAccountMigration }: RequestSaveMigrationAcknowledgedStatus) { + this.#koniState.updateSetting('isAcknowledgedUnifiedAccountMigration', isAcknowledgedUnifiedAccountMigration); return true; } diff --git a/packages/extension-base/src/services/setting-service/constants.ts b/packages/extension-base/src/services/setting-service/constants.ts index bd45562248..43d5d0bf88 100644 --- a/packages/extension-base/src/services/setting-service/constants.ts +++ b/packages/extension-base/src/services/setting-service/constants.ts @@ -45,6 +45,6 @@ export const DEFAULT_SETTING: UiSettings = { timeAutoLock: DEFAULT_AUTO_LOCK_TIME, enableChainPatrol: DEFAULT_CHAIN_PATROL_ENABLE, notificationSetup: DEFAULT_NOTIFICATION_SETUP, - isAcknowledgedMigration: DEFAULT_ACKNOWLEDGED_MIGRATION_STATUS, + isAcknowledgedUnifiedAccountMigration: DEFAULT_ACKNOWLEDGED_MIGRATION_STATUS, walletReference: '' };