Skip to content

Commit

Permalink
tweak
Browse files Browse the repository at this point in the history
  • Loading branch information
marc2332 committed Oct 6, 2023
1 parent 11068e9 commit 3c3bf61
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ import { MarketCurrency } from '@core/market'
import { NetworkId, getDefaultClientOptions, getDefaultPersistedNetwork } from '@core/network'
import { INode } from '@core/network/interfaces'
import { ChrysalisNetworkId } from '@core/profile/enums'
import { StrongholdVersion } from '@core/stronghold'
import { get } from 'svelte/store'
import { DEFAULT_PERSISTED_PROFILE_OBJECT } from '../../constants'
import { IChrysalisNode, IChrysalisPersistedProfile, IPersistedProfile } from '../../interfaces'
Expand Down Expand Up @@ -32,8 +33,7 @@ export function checkAndMigrateChrysalisProfiles(): boolean {
hasVisitedDashboard: chrysalisProfile.hasVisitedDashboard ?? undefined,
clientOptions: DEFAULT_PERSISTED_PROFILE_OBJECT.clientOptions, // migration needed
forceAssetRefresh: DEFAULT_PERSISTED_PROFILE_OBJECT.forceAssetRefresh,
strongholdVersion:
chrysalisProfile.strongholdVersion ?? DEFAULT_PERSISTED_PROFILE_OBJECT.strongholdVersion,
strongholdVersion: chrysalisProfile.strongholdVersion ?? StrongholdVersion.V2,
needsChrysalisToStardustDbMigration: true,
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,6 @@ export const DEFAULT_PERSISTED_PROFILE_OBJECT: IPersistedProfile = {
accountPersistedData: {},
isDeveloperProfile: false,
forceAssetRefresh: false,
strongholdVersion: StrongholdVersion.V2,
strongholdVersion: StrongholdVersion.V3,
clientOptions: {},
}

0 comments on commit 3c3bf61

Please sign in to comment.