Skip to content

Latest commit

 

History

History
131 lines (114 loc) · 6.19 KB

File metadata and controls

131 lines (114 loc) · 6.19 KB

DeFi Sky

Core Concepts

Code

Exercises

Resources

Example Transactions

Running Tests

Tests require a connection to Ethereum mainnet to fork and test against real state.

Setup

  1. Get an Ethereum RPC URL:

  2. Configure the fork URL:

cd foundry
cp .env.sample .env
# Edit .env and add your RPC URL
  1. Run tests:
forge test

All test contracts inherit from BaseTest which automatically handles fork setup when FORK_URL is configured.