diff --git a/src/components/Contracts/ChainConfig.tsx b/src/components/Contracts/ChainConfig.tsx index eafb5e4..dd84c94 100644 --- a/src/components/Contracts/ChainConfig.tsx +++ b/src/components/Contracts/ChainConfig.tsx @@ -1,5 +1,5 @@ import React from "react"; -import { config } from "./config"; +import { chainDetails } from "./chainDetails"; import deployments from "./deployments.json"; import { shortenAddress } from "../../utils/shortenAddress"; @@ -11,12 +11,12 @@ function ChainConfig() {
chain logo - - {config[Object.keys(deployments)[index]].chainName}{" "} + + {chainDetails[Object.keys(deployments)[index]].chainName}{" "}
@@ -24,16 +24,15 @@ function ChainConfig() { {" "}
Chain Slug : {" "} - {config[Object.keys(deployments)[index]].chainId}{" "} + {chainDetails[Object.keys(deployments)[index]].chainId}{" "}
{" "} Socket : {" "} diff --git a/src/components/Contracts/Dropdown.tsx b/src/components/Contracts/Dropdown.tsx index c520df0..987fb7a 100644 --- a/src/components/Contracts/Dropdown.tsx +++ b/src/components/Contracts/Dropdown.tsx @@ -1,5 +1,5 @@ import React, { useState } from "react"; -import { config } from "./config"; +import { chainDetails } from "./chainDetails"; function DropdownComponent({ selectedChainId, @@ -12,7 +12,7 @@ function DropdownComponent({ className="h-10 px-2 rounded text-sm border-gray-300" onChange={(e) => onChangeAction(e.target.value)} > - {Object.values(config).map((item) => { + {Object.values(chainDetails).map((item) => { if (item.chainId.toString() != excludeChainId) { return item.chainId == selectedChainId ? (