Skip to content

Commit

Permalink
feat: ethernaut level 13 (#23)
Browse files Browse the repository at this point in the history
* docs: update README

* feat: add ethernaut `GatekeeperOne` challenge

* feat: solution for level 13

* chore: pnpm install

* chore: lint

* ci: bump versions
  • Loading branch information
leovct authored Sep 19, 2024
1 parent 88824d7 commit 3a54e74
Show file tree
Hide file tree
Showing 6 changed files with 397 additions and 240 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/exploit.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ name: exploit
on: push

env:
PNPM_VERSION: '8'
NODE_VERSION: '20.9'
PNPM_VERSION: '9.9'
NODE_VERSION: '20.11'
FOUNDRY_PROFILE: ci

concurrency:
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ name: lint
on: push

env:
PNPM_VERSION: '8'
NODE_VERSION: '20.9'
PNPM_VERSION: '9.9'
NODE_VERSION: '20.11'

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
Expand Down
14 changes: 4 additions & 10 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,23 +28,17 @@ cd puzzl3s
To build the contracts, you can run the following command:

```sh
make build
pnpm run build
```

Run all the exploits using:

```sh
make exploit
pnpm run exploits
```

Note that you can also run the exploit of a specific contract using `CONTRACT=<CONTRACT_NAME>` (see `make list`) and you can show traces using `DEBUG=TRUE`. Here's an example:
Note that you can also run the exploit of a specific contract using while also showing traces. Here's an example:

```sh
make exploit CONTRACT=RoadClosed DEBUG=TRUE
```

To discover all the possible commands, run:

```sh
make
forge test -vvvv --match-contract RoadClosed
```
Loading

0 comments on commit 3a54e74

Please sign in to comment.