🔋 this project contains solutions for openzeppelin's ethernaut wargames. leveraging foundry, each level has a test set (.t.sol
), a script set (.s.sol
), and a write-up. some levels also have an exploit at src/.sol
.
🔋 note that my "submission foundry scripts" intentionally contain the addresses of my instances hardcoded instead of in the .env
file. this serves me as an arxiv, and it's harmless as i use a test wallet for this work.
🔋 by the way, do you remember overthewire? here is my WeChall profile from playing it in 2014.
-
install foundry
-
create a
.env
(from.env.example
) and add your private and private keys -
add a sepolia rpc url to
foundry.toml
- you will find detailed instructions in each write-up, but as a general rule:
- run tests with, for example,
forge test -vvvv
, or, for example,forge test -vvvv --match-path ./test/01/Fallback.t.sol
- submit scripts with, for example,
forge script ./script/01/Fallback.s.sol --broadcast -vvvv --rpc-url sepolia