Act 2: Running it locally
Estimated time: 5 minIn 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:
- Deploy your contracts
- 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)