Skip to content

Commit

Permalink
revert config split
Browse files Browse the repository at this point in the history
  • Loading branch information
GrandSchtroumpf committed Feb 4, 2025
1 parent 4da4be6 commit 4e5ae06
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions src/libs/wagmi/wagmi.constants.ts
Original file line number Diff line number Diff line change
@@ -1,17 +1,11 @@
import { SelectableConnectionName } from 'libs/wagmi/wagmi.types';
import config from 'config';
import { tenderlyRpc } from 'utils/tenderly';
import { lsService } from 'services/localeStorage';

const configOverride = lsService.getItem('configOverride');

const IS_ENV_RPC = !!import.meta.env.VITE_CHAIN_RPC_URL;

const CHAIN_RPC_URL =
tenderlyRpc ||
configOverride?.network?.rpc.url ||
import.meta.env.VITE_CHAIN_RPC_URL ||
config.network.rpc.url;
tenderlyRpc || config.network.rpc.url || import.meta.env.VITE_CHAIN_RPC_URL;

const CHAIN_RPC_HEADERS =
tenderlyRpc || IS_ENV_RPC ? {} : config.network.rpc?.headers || {};
Expand Down

0 comments on commit 4e5ae06

Please sign in to comment.