Skip to content

Instantly share code, notes, and snippets.

@Ernesto-tha-great
Created October 20, 2022 03:32
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Ernesto-tha-great/8f288243dc2f7f68b5b393d10d5b85bb to your computer and use it in GitHub Desktop.
Save Ernesto-tha-great/8f288243dc2f7f68b5b393d10d5b85bb to your computer and use it in GitHub Desktop.
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