Hey is a decentralized and permissionless social media app built with Lens Protocol 🌿

refactor: update Web3Provider and Trade component to use new RPC endpoint with batching for improved performance

yoginth.com 2a6ff9b1 c3937e51

verified
+8 -2
+7 -1
apps/web/src/components/Account/CreatorCoin/Trade.tsx
··· 32 32 const { address } = useAccount(); 33 33 const { data: walletClient } = useWalletClient({ chainId: base.id }); 34 34 const publicClient = useMemo( 35 - () => createPublicClient({ chain: base, transport: http() }), 35 + () => 36 + createPublicClient({ 37 + chain: base, 38 + transport: http("https://base.llamarpc.com", { 39 + batch: { batchSize: 30 } 40 + }) 41 + }), 36 42 [] 37 43 ); 38 44 const handleWrongNetwork = useHandleWrongNetwork();
+1 -1
apps/web/src/components/Common/Providers/Web3Provider.tsx
··· 22 22 connectors, 23 23 transports: { 24 24 [CHAIN.id]: getRpc({ mainnet: IS_MAINNET }), 25 - [base.id]: http() 25 + [base.id]: http("https://base.llamarpc.com", { batch: { batchSize: 30 } }) 26 26 } 27 27 }); 28 28