From dfd27ac610d31260ea40f11cd6ffcd968474f950 Mon Sep 17 00:00:00 2001 From: Reinis Martinsons <77973553+Reinis-FRP@users.noreply.github.com> Date: Fri, 10 May 2024 09:46:07 +0300 Subject: [PATCH] fix: pin foundry version (#7) Signed-off-by: Reinis Martinsons --- .github/workflows/test.yml | 6 ++++++ README.md | 8 ++++++++ 2 files changed, 14 insertions(+) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 31dc42f..d68a29b 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -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" @@ -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" @@ -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" diff --git a/README.md b/README.md index 20218c3..f1c48b4 100644 --- a/README.md +++ b/README.md @@ -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 ```