Skip to content

Commit

Permalink
batch requests
Browse files Browse the repository at this point in the history
  • Loading branch information
jordanlesich committed Jun 11, 2024
1 parent 971889a commit efde454
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 6 deletions.
5 changes: 0 additions & 5 deletions src/constants/enpoints.ts
Original file line number Diff line number Diff line change
@@ -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
Expand Down
2 changes: 1 addition & 1 deletion src/utils/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -31,5 +31,5 @@ export const ensConfig = createConfig({

export const publicClient = createPublicClient({
chain: appNetwork,
transport: http(appRpc),
transport: http(appRpc, { batch: true }),
});

0 comments on commit efde454

Please sign in to comment.