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

refactor: replace hardcoded RPC URL with BASE_RPC_URL constant in Trade and Web3Provider components

yoginth.com 799e8f2c c0ea16d1

verified
+5 -4
+2 -3
apps/web/src/components/Account/CreatorCoin/Trade.tsx
··· 1 + import { BASE_RPC_URL } from "@hey/data/constants"; 1 2 import type { GetCoinResponse } from "@zoralabs/coins-sdk"; 2 3 import { 3 4 createTradeCall, ··· 37 38 () => 38 39 createPublicClient({ 39 40 chain: base, 40 - transport: http("https://base.llamarpc.com", { 41 - batch: { batchSize: 30 } 42 - }) 41 + transport: http(BASE_RPC_URL, { batch: { batchSize: 30 } }) 43 42 }), 44 43 [] 45 44 );
+2 -1
apps/web/src/components/Common/Providers/Web3Provider.tsx
··· 1 1 import { 2 + BASE_RPC_URL, 2 3 CHAIN, 3 4 IS_MAINNET, 4 5 WALLETCONNECT_PROJECT_ID ··· 22 23 connectors, 23 24 transports: { 24 25 [CHAIN.id]: getRpc({ mainnet: IS_MAINNET }), 25 - [base.id]: http("https://base.llamarpc.com", { batch: { batchSize: 30 } }) 26 + [base.id]: http(BASE_RPC_URL, { batch: { batchSize: 30 } }) 26 27 } 27 28 }); 28 29
+1
packages/data/constants.ts
··· 30 30 export const BLOCK_EXPLORER_URL = IS_MAINNET 31 31 ? "https://lenscan.io" 32 32 : "https://testnet.lenscan.io"; 33 + export const BASE_RPC_URL = "https://base.llamarpc.com"; 33 34 34 35 // Storage 35 36 export const STORAGE_NODE_URL = "https://api.grove.storage";