Skip to content

Commit

Permalink
fix rpc variables
Browse files Browse the repository at this point in the history
  • Loading branch information
yvesfracari committed Jul 9, 2024
1 parent 4211877 commit 2cc2386
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions src/lib/publicClients.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,9 @@ export const supportedChains = [gnosis, mainnet, sepolia] as const;
export const supportedChainIds = [mainnet.id, gnosis.id, sepolia.id] as const;

export const RPC_PROVIDERS = {
[mainnet.id]: process.env.RPC_URL_MAINNET,
[gnosis.id]: process.env.RPC_URL_GNOSIS,
// TODO: Infura API of sepolia for testing
[sepolia.id]: "https://sepolia.infura.io/v3/dfe880d50c7344c8ab4dbb1e5b74a51d",
[mainnet.id]: process.env.NEXT_PUBLIC_RPC_URL_MAINNET,
[gnosis.id]: process.env.NEXT_PUBLIC_RPC_URL_GNOSIS,
[sepolia.id]: process.env.NEXT_PUBLIC_RPC_URL_SEPOLIA,
} as const;

export function createClientForChain(chain: ChainType) {
Expand Down

0 comments on commit 2cc2386

Please sign in to comment.