This is a Next.js project bootstrapped with create-next-app
.
yarn install
- Create a
.env.development
file and addNEXT_PUBLIC_NETWORK_ID
based on your compiled contract"networks"
key. - Create a workspace with Ganache pointing to
truffle-config.js
. - If needed, run
truffle migrate --reset
.
Open http://localhost:3000 with your browser to see the result.
- Login to your metamask account.
- Add a network manually:
- Chain ID is 1337 by default.
- RPC URL is provided by Ganache.
- Currency Symbol is ETH.