diff --git a/projects/ui/src/util/wagmi/ethersAdapter.ts b/projects/ui/src/util/wagmi/ethersAdapter.ts index bcfa10770..7cb65afad 100644 --- a/projects/ui/src/util/wagmi/ethersAdapter.ts +++ b/projects/ui/src/util/wagmi/ethersAdapter.ts @@ -4,12 +4,11 @@ import { useMemo } from 'react'; import type { Account, Chain, Client, Transport } from 'viem'; import { Config, useClient, useConnectorClient } from 'wagmi'; -const netlifyContext = import.meta.env.VITE_NETLIFY_CONTEXT; -const IS_DEVELOPMENT_ENV = netlifyContext !== 'production' && netlifyContext !== "deploy-preview"; +const SHOW_DEV = import.meta.env.VITE_SHOW_DEV_CHAINS; const fallbackChain = { - chainId: IS_DEVELOPMENT_ENV ? ChainId.LOCALHOST : ChainId.ARBITRUM_MAINNET, - name: IS_DEVELOPMENT_ENV ? 'locahost:8545' : 'arbitrum', + chainId: SHOW_DEV ? ChainId.LOCALHOST : ChainId.ARBITRUM_MAINNET, + name: SHOW_DEV ? 'locahost:8545' : 'arbitrum', } as const; export function clientToProvider(client: Client) {