Skip to content

Commit

Permalink
Remove sepolia support (#40)
Browse files Browse the repository at this point in the history
  • Loading branch information
jimmychu0807 authored Sep 19, 2024
1 parent db14444 commit ec27348
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions apps/web/src/config/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,7 @@ import { defineChain, type Chain, type Address } from "viem";
import { cookieStorage, createStorage } from "wagmi";
import { defaultWagmiConfig } from "@web3modal/wagmi/react/config";
import {
sepolia, // Ethereum
optimismSepolia, // Optimism
optimismSepolia, // Optimism testnet
} from "wagmi/chains";

import * as GameJson from "@contract-artifacts/GuessingGame.json";
Expand Down Expand Up @@ -36,7 +35,6 @@ export const walletConnectProjectId = process.env["NEXT_PUBLIC_WALLETCONNECT_PRO
export const deployedAddress = process.env["NEXT_PUBLIC_GUESSING_GAME_CONTRACT_ADDRESS"] as Address;

export const RpcUrls = {
sepolia: `https://eth-sepolia.g.alchemy.com/v2/${process.env["NEXT_PUBLIC_ALCHEMY_API_KEY"]}`,
optimismSepolia: `https://opt-sepolia.g.alchemy.com/v2/${process.env["NEXT_PUBLIC_ALCHEMY_API_KEY"]}`,
devChain: "http://localhost:8545",
};
Expand All @@ -61,9 +59,9 @@ const devChain = defineChain({
});

export const chains: readonly [Chain, ...Chain[]] =
process.env["NEXT_PUBLIC_ENV"] === "testnet"
? [sepolia, optimismSepolia]
: [sepolia, optimismSepolia, devChain];
process.env["NEXT_PUBLIC_ENV"] === "development"
? [optimismSepolia, devChain]
: [optimismSepolia];

const wagmiMetadata = {
name: projectInfo.name,
Expand Down

0 comments on commit ec27348

Please sign in to comment.