Skip to content

Latest commit

 

History

History
32 lines (27 loc) · 910 Bytes

README.org

File metadata and controls

32 lines (27 loc) · 910 Bytes

Ethernaut Foundry Solutions

Ethernaut CTF challenges solutions using Solidity and Foundry.

Install

Clone the repo and install dependencies:

git clone https://github.com/gabr1sr/ethernaut-foundry-solutions.git
forge install

Copy .env.example file to .env, open and set environment variables:

cp .env.example .env

Compile contracts:

forge build

Running Scripts

Choose a challenge, change the address and run the respective challenge script:

source .env
forge script script/HelloEthernaut.s.sol:HelloEthernautScript --private-key $PRIVATE_KEY --broadcast --rpc-url $SEPOLIA_RPC_URL

Running Tests

You can simply run all tests using:

forge test -vvvv