diff --git a/packages/nextjs/app/page.tsx b/packages/nextjs/app/page.tsx index ec2b3f9..f84a9f1 100644 --- a/packages/nextjs/app/page.tsx +++ b/packages/nextjs/app/page.tsx @@ -4,8 +4,14 @@ import Link from "next/link"; import type { NextPage } from "next"; import { BugAntIcon, MagnifyingGlassIcon } from "@heroicons/react/24/outline"; import BuildersGrid from "~~/components/batch/BuildersGrid"; +import { useScaffoldReadContract } from "~~/hooks/scaffold-eth"; const Home: NextPage = () => { + const { data: checkedInCounter } = useScaffoldReadContract({ + contractName: "BatchRegistry", + functionName: "checkedInCounter", + watch: true, + }); return ( <>
Get started by taking a look at your batch GitHub repository.
Checked in builders count: - To Be Implemented + {checkedInCounter?.toString()}