diff --git a/src/components/common/BlockchainInfo.tsx b/src/components/common/BlockchainInfo.tsx index ac07247a..d4fe72fe 100644 --- a/src/components/common/BlockchainInfo.tsx +++ b/src/components/common/BlockchainInfo.tsx @@ -5,10 +5,9 @@ import { Disclosure } from "@headlessui/react" import { BlockchainIcon } from "~/components/icons/BlockchainIcon" import { CSB_SCAN } from "~/lib/env" import { useTranslation } from "~/lib/i18n/client" -import { toCid, toGateway, toIPFS } from "~/lib/ipfs-parser" +import { toGateway, toIPFS } from "~/lib/ipfs-parser" import { ExpandedCharacter, ExpandedNote } from "~/lib/types" import { cn } from "~/lib/utils" -import { useGetGreenfieldId } from "~/queries/site" export const BlockchainInfo = ({ site, @@ -20,7 +19,6 @@ export const BlockchainInfo = ({ const { t } = useTranslation("common") const ipfs = (page ? page.metadata?.uri : site?.metadata?.uri) || "" - const greenfieldId = useGetGreenfieldId(toCid(ipfs)) const type = page ? page?.metadata?.content?.tags?.includes("post") @@ -117,25 +115,6 @@ export const BlockchainInfo = ({ - {greenfieldId.data?.greenfieldId && ( -
  • -
    - {t("BNB Greenfield Address")} -
    -
    - - {greenfieldId.data?.greenfieldId} - -
    -
  • - )} diff --git a/src/models/site.model.ts b/src/models/site.model.ts index 9b44fe77..c006aa3d 100644 --- a/src/models/site.model.ts +++ b/src/models/site.model.ts @@ -471,11 +471,3 @@ export async function checkDomain(domain: string, handle: string) { return check.data } - -export async function getGreenfieldId(cid: string) { - const result = await ( - await fetch(`https://ipfs-relay.crossbell.io/map/ipfs2gnfd/${cid}`) - ).json() - - return result -}