Skip to content

Commit

Permalink
fix: pin foundry version (#7)
Browse files Browse the repository at this point in the history
Signed-off-by: Reinis Martinsons <reinis@umaproject.org>
  • Loading branch information
Reinis-FRP committed May 10, 2024
1 parent 205823f commit dfd27ac
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 0 deletions.
6 changes: 6 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,8 @@ jobs:

- name: "Install Foundry"
uses: "foundry-rs/foundry-toolchain@v1"
with:
version: "nightly-de33b6af53005037b463318d2628b5cfcaf39916"

- name: "Lint the contracts"
run: "forge fmt"
Expand All @@ -41,6 +43,8 @@ jobs:

- name: "Install Foundry"
uses: "foundry-rs/foundry-toolchain@v1"
with:
version: "nightly-de33b6af53005037b463318d2628b5cfcaf39916"

- name: "Build the contracts and print their size"
run: "forge build --sizes"
Expand All @@ -64,6 +68,8 @@ jobs:

- name: "Install Foundry"
uses: "foundry-rs/foundry-toolchain@v1"
with:
version: "nightly-de33b6af53005037b463318d2628b5cfcaf39916"

- name: "Show the Foundry config"
run: "forge config"
Expand Down
8 changes: 8 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,14 @@ This repository contains the main smart contracts for Oval. It uses [Foundry](ht

This repo also consists of a set of scripts used to profile the Oval gas usage. See [README](./scripts/README.md) that shows how to run these and [this](https://docs.oval.xyz/contract-architecture/gas-profiling) docs page that outlines the gas profiling finding.

### Installing Foundry

Tests in this repo work up to [Nightly (2024-03-02)](https://github.com/foundry-rs/foundry/releases/tag/nightly-de33b6af53005037b463318d2628b5cfcaf39916) Foundry version, so make sure to use it when installing:

```
foundryup -v nightly-de33b6af53005037b463318d2628b5cfcaf39916
```

### Building Contracts

```
Expand Down

0 comments on commit dfd27ac

Please sign in to comment.