diff --git a/web/src/app/[cat]/InteractionClient.tsx b/web/src/app/[cat]/InteractionClient.tsx index 31359375..d9935d68 100644 --- a/web/src/app/[cat]/InteractionClient.tsx +++ b/web/src/app/[cat]/InteractionClient.tsx @@ -225,7 +225,7 @@ export default function InteractionClient() { setIsSyncing(true); console.log('Fetching token details from blockchain...', { tokenAddress, chainId }); - const publicClient = getPublicClient(config, { chainId: chainId as any }); + const publicClient = getPublicClient(config, { chainId }); if (!publicClient) { throw new Error(`No public client available for chain ${chainId}`); } diff --git a/web/src/app/my-cats/page.tsx b/web/src/app/my-cats/page.tsx index 8dca14bf..dfda8bc9 100644 --- a/web/src/app/my-cats/page.tsx +++ b/web/src/app/my-cats/page.tsx @@ -187,7 +187,7 @@ export default function MyCATsPage() { for (const [chainId, factoryAddress] of Object.entries(ClowderVaultFactories)) { if (!isValidChainId(chainId)) continue; - const publicClient = getPublicClient(config, { chainId: Number(chainId) as any }); + const publicClient = getPublicClient(config, { chainId }); if (!publicClient) continue; try { @@ -596,7 +596,7 @@ export default function MyCATsPage() { chainId: SupportedChainId, defaultRole: 'admin' | 'minter' | 'both' ): Promise => { - const publicClient = getPublicClient(config, { chainId: chainId as any }); + const publicClient = getPublicClient(config, { chainId }); if (!publicClient || !addresses.length) return []; try { diff --git a/web/src/components/EthereumClassic.tsx b/web/src/components/EthereumClassic.tsx index 10035f80..415e8337 100644 --- a/web/src/components/EthereumClassic.tsx +++ b/web/src/components/EthereumClassic.tsx @@ -1,26 +1,26 @@ -// import { defineChain } from "viem"; +import { defineChain } from "viem"; -// export const ethereumClassic = defineChain({ -// id: 61, -// name: "Ethereum Classic", -// network: "ethereumClassic", -// nativeCurrency: { -// name: "Ethereum Classic", -// symbol: "ETC", -// decimals: 18, -// }, -// rpcUrls: { -// default: { -// http: ["https://etc.rivet.link"], -// }, -// public: { -// http: ["https://etc.rivet.link"], -// }, -// }, -// blockExplorers: { -// default: { -// name: "BlockScout", -// url: "https://blockscout.com/etc/mainnet", -// }, -// }, -// }); +export const ethereumClassic = defineChain({ + id: 61, + name: "Ethereum Classic", + network: "ethereumClassic", + nativeCurrency: { + name: "Ethereum Classic", + symbol: "ETC", + decimals: 18, + }, + rpcUrls: { + default: { + http: ["https://etc.rivet.link"], + }, + public: { + http: ["https://etc.rivet.link"], + }, + }, + blockExplorers: { + default: { + name: "BlockScout", + url: "https://blockscout.com/etc/mainnet", + }, + }, +}); diff --git a/web/src/utils/config.tsx b/web/src/utils/config.tsx index ccbdeecc..aa89b7ab 100644 --- a/web/src/utils/config.tsx +++ b/web/src/utils/config.tsx @@ -1,22 +1,22 @@ import { - // polygon, - // scrollSepolia, - // base, + polygon, + scrollSepolia, + base, } from "wagmi/chains"; import { getDefaultConfig, } from "@rainbow-me/rainbowkit"; import { citreaTestnet } from "@/components/CitreaTestnet"; -// import { ethereumClassic } from "@/components/EthereumClassic"; +import { ethereumClassic } from "@/components/EthereumClassic"; export const config = getDefaultConfig({ appName: "clowder", projectId: process.env.NEXT_PUBLIC_PROJECT_ID ?? "", chains: [ - // scrollSepolia, - // base, - // polygon, - // ethereumClassic, + scrollSepolia, + base, + polygon, + ethereumClassic, citreaTestnet, ] as const, ssr: true, // Disable SSR for static export