Skip to content

Installing Foundry

Course: Ganache, Trufle, Hardhat and Foundry - chapter 6

Installing Foundry locally

Terminal window
curl -L https://foundry.paradigm.xyz | bash

Setting up VSCode

  1. Install https://marketplace.visualstudio.com/items?itemName=JuanBlanco.solidity
  2. Initialize a foundry project
forge init --template https://github.com/foundry-rs/forge-template hello_template
  1. Open in VSCode

  2. Create a .vscode/settings.json

{
"solidity.packageDefaultDependenciesContractsDirectory": "src",
"solidity.packageDefaultDependenciesDirectory": "lib"
}