Skip to content

Commit

Permalink
Merge pull request #212 from DAOmasons/rpcIssues
Browse files Browse the repository at this point in the history
batch requests
  • Loading branch information
jordanlesich authored Jun 11, 2024
2 parents a9f59f8 + efde454 commit 14e0911
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 14e0911

Please sign in to comment.