Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/main' into issue-#1648
Browse files Browse the repository at this point in the history
  • Loading branch information
GrandSchtroumpf committed Feb 4, 2025
2 parents 949564c + 4da4be6 commit 2e2a65f
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 1 deletion.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
10 changes: 9 additions & 1 deletion src/libs/wagmi/wagmi.constants.ts
Original file line number Diff line number Diff line change
@@ -1,10 +1,18 @@
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 || config.network.rpc.url || import.meta.env.VITE_CHAIN_RPC_URL;
tenderlyRpc ||
configOverride?.network?.rpc.url ||
import.meta.env.VITE_CHAIN_RPC_URL ||
config.network.rpc.url;

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

0 comments on commit 2e2a65f

Please sign in to comment.