diff --git a/src/state/migrations/index.ts b/src/state/migrations/index.ts index 50085e245ec..8a862ee33ec 100644 --- a/src/state/migrations/index.ts +++ b/src/state/migrations/index.ts @@ -1,25 +1,27 @@ import type { MigrationManifest } from 'redux-persist' import { clearAssets } from './clearAssets' +import { clearMarketData } from './clearMarketData' +import { clearNfts } from './clearNfts' +import { clearOpportunities } from './clearOpportunities' +import { clearPortfolio } from './clearPortfolio' +import { clearSnapshot } from './clearSnapshot' +import { clearTxHistory } from './clearTxHistory' export const clearTxHistoryMigrations = { - // Uncomment me when introducing the first migration for this slice - // 0: clearTxHistory, + 0: clearTxHistory, } as unknown as Omit export const clearOpportunitiesMigrations = { - // Uncomment me when introducing the first migration for this slice - // 0: clearOpportunities, + 0: clearOpportunities, } as unknown as Omit export const clearPortfolioMigrations = { - // Uncomment me when introducing the first migration for this slice - // 0: clearPortfolio, + 0: clearPortfolio, } as unknown as Omit export const clearNftsMigrations = { - // Uncomment me when introducing the first migration for this slice - // 0: clearNfts, + 0: clearNfts, } as unknown as Omit export const clearAssetsMigrations = { @@ -28,11 +30,9 @@ export const clearAssetsMigrations = { } as unknown as Omit export const clearMarketDataMigrations = { - // Uncomment me when introducing the first migration for this slice - // 0: clearMarketData, + 0: clearMarketData, } as unknown as Omit export const clearSnapshotMigrations = { - // Uncomment me when introducing the first migration for this slice - // 0: clearSnapshot, + 0: clearSnapshot, } as unknown as Omit diff --git a/src/state/slices/opportunitiesSlice/opportunitiesSlice.test.ts b/src/state/slices/opportunitiesSlice/opportunitiesSlice.test.ts index 3ee7b5c5494..6364a81e0ba 100644 --- a/src/state/slices/opportunitiesSlice/opportunitiesSlice.test.ts +++ b/src/state/slices/opportunitiesSlice/opportunitiesSlice.test.ts @@ -25,7 +25,7 @@ describe('opportunitiesSlice', () => { ...initialState, _persist: { rehydrated: true, - version: -Infinity, + version: 0, }, }) }) diff --git a/src/state/slices/txHistorySlice/txHistorySlice.test.ts b/src/state/slices/txHistorySlice/txHistorySlice.test.ts index 38828843f25..536ea974314 100644 --- a/src/state/slices/txHistorySlice/txHistorySlice.test.ts +++ b/src/state/slices/txHistorySlice/txHistorySlice.test.ts @@ -20,7 +20,7 @@ describe('txHistorySlice', () => { expect(store.getState().txHistory).toEqual({ _persist: { rehydrated: true, - version: -Infinity, + version: 0, }, hydrationMeta: {}, txs: {