diff --git a/src/constants/enpoints.ts b/src/constants/enpoints.ts index 0be0e304..17c6df4d 100644 --- a/src/constants/enpoints.ts +++ b/src/constants/enpoints.ts @@ -1,8 +1,3 @@ -export const RPC_URL = - import.meta.env.VITE_RUNTIME_ENV === 'dev' - ? import.meta.env.RPC_URL_TESTNET - : import.meta.env.RPC_URL_MAINNET; - export const SCAN_KEY = import.meta.env.VITE_RUNTIME_ENV === 'dev' ? import.meta.env.SCAN_KEY_TESTNET diff --git a/src/utils/config.ts b/src/utils/config.ts index 782226f5..fa33017b 100644 --- a/src/utils/config.ts +++ b/src/utils/config.ts @@ -31,5 +31,5 @@ export const ensConfig = createConfig({ export const publicClient = createPublicClient({ chain: appNetwork, - transport: http(appRpc), + transport: http(appRpc, { batch: true }), });