Skip to content

Commit

Permalink
fix: use only sepolia if demofeatures are disabled
Browse files Browse the repository at this point in the history
  • Loading branch information
belopash committed May 13, 2024
1 parent 3e7bfd7 commit 4477caf
Showing 1 changed file with 11 additions and 12 deletions.
23 changes: 11 additions & 12 deletions src/network/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 = {
Expand All @@ -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([
{
Expand Down

0 comments on commit 4477caf

Please sign in to comment.