From 5c92767f8fed558aafd9dda3f7842c6b0e7cdd91 Mon Sep 17 00:00:00 2001 From: Lucas Leclerc Date: Tue, 29 Oct 2024 16:34:43 +0100 Subject: [PATCH] add(p2p/foundry): explain more the setup --- p2p/3.foundry/SETUP.md | 20 +++++++++++++++++--- 1 file changed, 17 insertions(+), 3 deletions(-) diff --git a/p2p/3.foundry/SETUP.md b/p2p/3.foundry/SETUP.md index be182704..d76a8d09 100644 --- a/p2p/3.foundry/SETUP.md +++ b/p2p/3.foundry/SETUP.md @@ -1,17 +1,31 @@ # Setup - Foundry -## Install foundry +- Open your terminal and type -Please follow the instructions given [here](https://book.getfoundry.sh/getting-started/installation). +```bash +curl -L https://foundry.paradigm.xyz | bash +``` + +This will download foundryup. + +- Then, you can download foundry by running `foundryup` +- If everything went fine you should be able to use `forge`, `anvil`, `chisel` and `cast`. +- If you are on macos you will need to install `libusb` with + +```bash +brew install libusb +``` After the installation, run the following command to ensure it has been properly installed on your computer: -```shell +```bash forge --version ``` It should print your current version. +If you have some troubles during the installation, you can refer to the [official documentation](https://book.getfoundry.sh/getting-started/installation). + ## Initialize your project Now we will initialize the project: