Skip to content

Commit

Permalink
Update transation storagekey
Browse files Browse the repository at this point in the history
  • Loading branch information
zzq0826 committed Jan 10, 2024
1 parent 559539a commit 2917d8c
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 4 deletions.
4 changes: 4 additions & 0 deletions src/constants/storageKey.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,10 @@ export const BRIDGE_TRANSACTIONS = "bridgeTransactions"

export const CLAIM_TRANSACTIONS = "claimTransactions"

export const BRIDGE_TRANSACTIONS_V2 = "bridgeTransactionsV2"

export const CLAIM_TRANSACTIONS_V2 = "claimTransactions2"

export const APP_VERSION = "appVersion"

export const BLOCK_NUMBERS = "blockNumbers"
Expand Down
4 changes: 2 additions & 2 deletions src/stores/claimStore.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
import { create } from "zustand"
import { persist } from "zustand/middleware"

import { CLAIM_TRANSACTIONS } from "@/constants/storageKey"
import { CLAIM_TRANSACTIONS_V2 } from "@/constants/storageKey"
import { TX_TYPE } from "@/constants/transaction"
import useTxStore from "@/stores/txStore"

Expand Down Expand Up @@ -77,7 +77,7 @@ const useClaimStore = create<ClaimStore>()(
},
}),
{
name: CLAIM_TRANSACTIONS,
name: CLAIM_TRANSACTIONS_V2,
},
),
)
Expand Down
4 changes: 2 additions & 2 deletions src/stores/txStore.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import produce from "immer"
import { create } from "zustand"
import { persist } from "zustand/middleware"

import { BRIDGE_TRANSACTIONS } from "@/constants/storageKey"
import { BRIDGE_TRANSACTIONS_V2 } from "@/constants/storageKey"
import { TX_TYPE } from "@/constants/transaction"

import { TxStore, fetchOnChainTransactions, formatBackTxList, updateFrontTransactions } from "./utils"
Expand Down Expand Up @@ -122,7 +122,7 @@ const useTxStore = create<TxStore>()(
),
}),
{
name: BRIDGE_TRANSACTIONS,
name: BRIDGE_TRANSACTIONS_V2,
},
),
)
Expand Down

0 comments on commit 2917d8c

Please sign in to comment.