diff --git a/src/network/config.ts b/src/network/config.ts index 267b300..62f19e9 100644 --- a/src/network/config.ts +++ b/src/network/config.ts @@ -5,6 +5,8 @@ import { arbitrumSepolia, arbitrum } from 'wagmi/chains'; import { jsonRpcProvider } from 'wagmi/providers/jsonRpc'; import { publicProvider } from 'wagmi/providers/public'; +import { demoFeaturesEnabled } from '@hooks/demoFeaturesEnabled'; + // export let CHAIN: Chain = arbitrumSepolia; // if (process.env.NETWORK === 'hardhat') { // CHAIN = { @@ -23,18 +25,15 @@ const { chains: configuredChains, publicClient, webSocketPublicClient, -} = configureChains( - [arbitrumSepolia, arbitrum], - [ - privateNode - ? jsonRpcProvider({ - rpc: () => ({ - http: privateNode, - }), - }) - : publicProvider(), - ], -); +} = configureChains(demoFeaturesEnabled() ? [arbitrumSepolia, arbitrum] : [arbitrumSepolia], [ + privateNode + ? jsonRpcProvider({ + rpc: () => ({ + http: privateNode, + }), + }) + : publicProvider(), +]); const connectors = connectorsForWallets([ {