From ea3bad0e4003419283990cabff23f5596759ebb5 Mon Sep 17 00:00:00 2001 From: 8sunyuan Date: Wed, 24 Jan 2024 11:13:54 -0500 Subject: [PATCH 1/2] fix: add contract size check --- .github/workflows/testinparallel.yml | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/.github/workflows/testinparallel.yml b/.github/workflows/testinparallel.yml index 97679d277..2d1fb3395 100644 --- a/.github/workflows/testinparallel.yml +++ b/.github/workflows/testinparallel.yml @@ -37,8 +37,11 @@ jobs: with: version: nightly - - name: Install forge dependencies - run: forge install + - name: Run Forge build + run: | + forge --version + forge build --sizes + id: build - name: Run forge test for the file run: forge test --match-path src/test/${{ matrix.file }} --no-match-contract FFI From 69158dedf20b1e4e8be54b5f53d5ad8407296873 Mon Sep 17 00:00:00 2001 From: 8sunyuan Date: Wed, 24 Jan 2024 11:51:51 -0500 Subject: [PATCH 2/2] fix: ignore harness build size --- src/test/harnesses/EigenPodHarness.sol | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/test/harnesses/EigenPodHarness.sol b/src/test/harnesses/EigenPodHarness.sol index 1f9546d76..3cdd6409c 100644 --- a/src/test/harnesses/EigenPodHarness.sol +++ b/src/test/harnesses/EigenPodHarness.sol @@ -2,8 +2,9 @@ pragma solidity =0.8.12; import "../../contracts/pods/EigenPod.sol"; +import "forge-std/Test.sol"; -contract EPInternalFunctions is EigenPod { +contract EPInternalFunctions is EigenPod, Test { constructor( IETHPOSDeposit _ethPOS,