Initial commit with 🏗️ create-eth @ 2.0.4
This commit is contained in:
12
packages/nextjs/app/crowdfund/page.tsx
Normal file
12
packages/nextjs/app/crowdfund/page.tsx
Normal file
@@ -0,0 +1,12 @@
|
||||
"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;
|
||||
Reference in New Issue
Block a user