Skip to content

Commit

Permalink
[Issue-3926] refactor: refactor interface param name
Browse files Browse the repository at this point in the history
  • Loading branch information
bluezdot committed Dec 24, 2024
1 parent 3ba31ae commit 2e5cd04
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions packages/extension-base/src/background/KoniTypes.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down Expand Up @@ -1922,7 +1922,7 @@ export interface ResponseNftImport {

/* Migrate Unified Account */
export interface RequestSaveMigrationAcknowledgedStatus {
isAcknowledgedMigration: boolean;
isAcknowledgedUnifiedAccountMigration: boolean;
}

export interface RequestMigrateUnifiedAndFetchEligibleSoloAccounts {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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: ''
};

0 comments on commit 2e5cd04

Please sign in to comment.