Skip to content

Commit

Permalink
fix migrations
Browse files Browse the repository at this point in the history
  • Loading branch information
MarkNerdi committed May 10, 2024
1 parent 170a01b commit 6b0ce35
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
import { DEFAULT_EXPLORER_URLS } from '@core/network'
import { IPersistedProfile } from '@core/profile/interfaces'

export function alphaProfileMigration17To18(existingProfile: unknown): Promise<void> {
export function alphaProfileMigration18To19(existingProfile: unknown): Promise<void> {
const profile = existingProfile as IPersistedProfile

profile.network = {
...profile.network,
explorerUrl: DEFAULT_EXPLORER_URLS[profile.network.id],
explorerUrl: structuredClone(DEFAULT_EXPLORER_URLS[profile.network.id]),
}

return Promise.resolve()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ import { alphaProfileMigration14To15 } from './alpha-profile-migration-14-to-15'
import { alphaProfileMigration15To16 } from './alpha-profile-migration-15-to-16'
import { alphaProfileMigration16To17 } from './alpha-profile-migration-16-to-17'
import { alphaProfileMigration17To18 } from './alpha-profile-migration-17-to-18'
import { alphaProfileMigration18To19 } from './alpha-profile-migration-18-to-19'
import { alphaProfileMigration2To3 } from './alpha-profile-migration-2-to-3'
import { alphaProfileMigration3To4 } from './alpha-profile-migration-3-to-4'
import { alphaProfileMigration4To5 } from './alpha-profile-migration-4-to-5'
Expand Down Expand Up @@ -37,4 +38,5 @@ export const ALPHA_PROFILE_MIGRATION_MAP: ProfileMigrationMap = {
15: alphaProfileMigration15To16,
16: alphaProfileMigration16To17,
17: alphaProfileMigration17To18,
18: alphaProfileMigration18To19,
}

0 comments on commit 6b0ce35

Please sign in to comment.