Skip to content

Instantly share code, notes, and snippets.

@Ernesto-tha-great
Created October 20, 2022 03:32
Embed
What would you like to do?
import * as React from "react";
import deployedContracts from "@celo-composer/hardhat/deployments/hardhat_contracts.json";
import { useCelo } from "@celo/react-celo";
import AppLayout from "@/components/layout/AppLayout";
import { HomePage } from "./HomePage";
export default function App() {
const { network } = useCelo();
const contracts =
deployedContracts[network?.chainId?.toString()]?.[
network?.name?.toLocaleLowerCase()
]?.contracts;
return (
<AppLayout title="Celo Starter" description="Celo Starter">
<HomePage contracts={contracts} />
</AppLayout>
);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment