Teaching myself how to fork mainnet with foundry. Useful for creating audit PoCs or interacting with contracts on mainnet.
- Clone repo
- Run
forge install
to install dependencies - Run
forge test --fork-url <RPC URL> --fork-block-number <BLOCK NUMBER>
to run the test