diff --git a/src/state/appSessions/index.ts b/src/state/appSessions/index.ts index b62d749e0a1..caa1d144674 100644 --- a/src/state/appSessions/index.ts +++ b/src/state/appSessions/index.ts @@ -2,7 +2,21 @@ import { Address } from 'viem'; import { Network, ChainId } from '@/networks/types'; import { createRainbowStore } from '../internal/createRainbowStore'; -import { chainsIdByName } from '@/networks/chains'; + +const chainsIdByNetwork: Record = { + [Network.mainnet]: ChainId.mainnet, + [Network.polygon]: ChainId.polygon, + [Network.avalanche]: ChainId.avalanche, + [Network.bsc]: ChainId.bsc, + [Network.arbitrum]: ChainId.arbitrum, + [Network.optimism]: ChainId.optimism, + [Network.zora]: ChainId.zora, + [Network.base]: ChainId.base, + [Network.degen]: ChainId.degen, + [Network.gnosis]: ChainId.gnosis, + [Network.blast]: ChainId.blast, + [Network.goerli]: ChainId.goerli, +}; export interface AppSessionV0 { activeSessionAddress: Address; @@ -176,7 +190,7 @@ export const useAppSessionsStore = createRainbowStore { const address = addr as Address; const network = sessions[address]; - acc[address] = chainsIdByName[network]; + acc[address] = chainsIdByNetwork[network]; return acc as Record; }, {} as Record