Created
October 20, 2022 03:32
-
-
Save Ernesto-tha-great/8f288243dc2f7f68b5b393d10d5b85bb to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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