From efde45451c9313686f66cea8fd12985479496648 Mon Sep 17 00:00:00 2001 From: jordan Date: Mon, 10 Jun 2024 18:01:43 -0700 Subject: [PATCH] batch requests --- src/constants/enpoints.ts | 5 ----- src/utils/config.ts | 2 +- 2 files changed, 1 insertion(+), 6 deletions(-) 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 }), });