🤔 Got questions? Schedule an office hours session.
Workshops
Build, Stage, Deploy
Act 2: Running it locally

Act 2: Running it locally

Estimated time: 5 min

In this act, you will:

  • Deploy scaffold-eth contracts to TestNet
  • Run the UI
  • Use the infinite faucet from the UI

Run & Deploy

Deploy contracts

Run the following command. It will:

  1. Deploy your contracts
  2. Have the contracts verified in Tenderly
cd packages/tenderly
npm run stage:connect:hardhat
 
cd ../hardhat
if [ -d deployments ]; then
  rm -r deployments
fi
npx hardhat deploy --network virtual_mainnet

Get the UI running

Run your NextJs server:

cd packages/tenderly
npm run stage:connect:nextjs
cd ../nextjs
npm run start

Interact

  • Pick the Burner Wallet - ideal for local dev
  • Click 💵 Faucet button (far right)
  • Reload the page (because the funds are already there)