Files
sre-02-crowdfunding/packages/nextjs/app/crowdfund/page.tsx
2026-01-11 17:24:19 +07:00

13 lines
464 B
TypeScript

"use client";
import { ContributeContractInteraction } from "./_components";
import type { NextPage } from "next";
import { useDeployedContractInfo } from "~~/hooks/scaffold-eth";
const CrowdFundPage: NextPage = () => {
const { data: crowdFundContract } = useDeployedContractInfo({ contractName: "CrowdFund" });
return <ContributeContractInteraction key={crowdFundContract?.address} address={crowdFundContract?.address} />;
};
export default CrowdFundPage;