From 352cd9e6d09da3f9521e261cd5b66d18e1e5795c Mon Sep 17 00:00:00 2001 From: ChefMist <133624774+ChefMist@users.noreply.github.com> Date: Tue, 4 Jun 2024 17:21:04 +0800 Subject: [PATCH 1/7] feat: update forge-std --- lib/forge-std | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/forge-std b/lib/forge-std index bb4ceea..52715a2 160000 --- a/lib/forge-std +++ b/lib/forge-std @@ -1 +1 @@ -Subproject commit bb4ceea94d6f10eeb5b41dc2391c6c8bf8e734ef +Subproject commit 52715a217dc51d0de15877878ab8213f6cbbbab5 From 9a702d87cfe821ce122b6ce0e705eb40259f7f4d Mon Sep 17 00:00:00 2001 From: ChefMist <133624774+ChefMist@users.noreply.github.com> Date: Tue, 4 Jun 2024 17:21:42 +0800 Subject: [PATCH 2/7] forge install: forge-gas-snapshot 9161f7c0b6c6788a89081e2b3b9c67592b71e689 --- .gitmodules | 3 +++ lib/forge-gas-snapshot | 1 + 2 files changed, 4 insertions(+) create mode 160000 lib/forge-gas-snapshot diff --git a/.gitmodules b/.gitmodules index eed62b8..65e8918 100644 --- a/.gitmodules +++ b/.gitmodules @@ -12,3 +12,6 @@ url = https://github.com/OpenZeppelin/openzeppelin-contracts branch = release-v4.9 +[submodule "lib/forge-gas-snapshot"] + path = lib/forge-gas-snapshot + url = https://github.com/marktoda/forge-gas-snapshot diff --git a/lib/forge-gas-snapshot b/lib/forge-gas-snapshot new file mode 160000 index 0000000..9161f7c --- /dev/null +++ b/lib/forge-gas-snapshot @@ -0,0 +1 @@ +Subproject commit 9161f7c0b6c6788a89081e2b3b9c67592b71e689 From f47f55bc51f035075a969536a6f26f1659d7e629 Mon Sep 17 00:00:00 2001 From: ChefMist <133624774+ChefMist@users.noreply.github.com> Date: Tue, 4 Jun 2024 17:24:39 +0800 Subject: [PATCH 3/7] feat: updated to solc 0.8.26 --- ...iquidityTest#testAddLiquidityOutsideActiveId_ExistingId.snap | 2 +- ..._AddLiquidityTest#testAddLiquidityOutsideActiveId_NewId.snap | 2 +- ...onManager_AddLiquidityTest#testAddLiquidityWithActiveId.snap | 2 +- ..._AddLiquidityTest#testAddLiquidityWithActiveId_WithHook.snap | 2 +- ...uidityTest#testRemoveLiquidityOutsideActiveId_ThreeBins.snap | 2 +- ...LiquidityTest#testRemoveLiquidityWithActiveId_ThreeBins.snap | 2 +- ...ionManager_RemoveLiquidityTest#testRemoveLiquidity_Half.snap | 2 +- .../BinFungibleTokenTest#testBatchTransferFrom_FromBob.snap | 2 +- .../BinFungibleTokenTest#testBatchTransferFrom_FromOwner.snap | 2 +- ...nSwapRouterTest#testExactInputSingle_DifferentRecipient.snap | 2 +- ...RouterTest#testExactInputSingle_EthPool_SwapEthForToken.snap | 2 +- ...RouterTest#testExactInputSingle_EthPool_SwapTokenForEth.snap | 2 +- .../BinSwapRouterTest#testExactInputSingle_SwapForY_1.snap | 2 +- .../BinSwapRouterTest#testExactInputSingle_SwapForY_2.snap | 2 +- ...wapRouterTest#testExactInput_MultiHopDifferentRecipient.snap | 2 +- ...SwapRouterTest#testExactOutputSingle_DifferentRecipient.snap | 2 +- .../BinSwapRouterTest#testExactOutputSingle_SwapForY_1.snap | 2 +- .../BinSwapRouterTest#testExactOutputSingle_SwapForY_2.snap | 2 +- ...apRouterTest#testExactOutput_MultiHopDifferentRecipient.snap | 2 +- .../BinSwapRouterTest#testExactOutput_SingleHop.snap | 2 +- .forge-snapshots/CLSwapRouterTest#ExactInput.snap | 2 +- .forge-snapshots/CLSwapRouterTest#ExactInputSingle.snap | 2 +- .forge-snapshots/CLSwapRouterTest#ExactOutput.snap | 2 +- .forge-snapshots/CLSwapRouterTest#ExactOutputSingle.snap | 2 +- .forge-snapshots/NonfungiblePositionManager#collect.snap | 2 +- .../NonfungiblePositionManager#decreaseLiquidity.snap | 2 +- .../NonfungiblePositionManager#increaseLiquidity.snap | 2 +- .forge-snapshots/NonfungiblePositionManager#mint.snap | 2 +- foundry.toml | 2 +- 29 files changed, 29 insertions(+), 29 deletions(-) diff --git a/.forge-snapshots/BinFungiblePositionManager_AddLiquidityTest#testAddLiquidityOutsideActiveId_ExistingId.snap b/.forge-snapshots/BinFungiblePositionManager_AddLiquidityTest#testAddLiquidityOutsideActiveId_ExistingId.snap index 4273605..d54044a 100644 --- a/.forge-snapshots/BinFungiblePositionManager_AddLiquidityTest#testAddLiquidityOutsideActiveId_ExistingId.snap +++ b/.forge-snapshots/BinFungiblePositionManager_AddLiquidityTest#testAddLiquidityOutsideActiveId_ExistingId.snap @@ -1 +1 @@ -80256 \ No newline at end of file +73618 \ No newline at end of file diff --git a/.forge-snapshots/BinFungiblePositionManager_AddLiquidityTest#testAddLiquidityOutsideActiveId_NewId.snap b/.forge-snapshots/BinFungiblePositionManager_AddLiquidityTest#testAddLiquidityOutsideActiveId_NewId.snap index 2846d6e..a69c1a7 100644 --- a/.forge-snapshots/BinFungiblePositionManager_AddLiquidityTest#testAddLiquidityOutsideActiveId_NewId.snap +++ b/.forge-snapshots/BinFungiblePositionManager_AddLiquidityTest#testAddLiquidityOutsideActiveId_NewId.snap @@ -1 +1 @@ -629630 \ No newline at end of file +622992 \ No newline at end of file diff --git a/.forge-snapshots/BinFungiblePositionManager_AddLiquidityTest#testAddLiquidityWithActiveId.snap b/.forge-snapshots/BinFungiblePositionManager_AddLiquidityTest#testAddLiquidityWithActiveId.snap index 4053d48..3f53246 100644 --- a/.forge-snapshots/BinFungiblePositionManager_AddLiquidityTest#testAddLiquidityWithActiveId.snap +++ b/.forge-snapshots/BinFungiblePositionManager_AddLiquidityTest#testAddLiquidityWithActiveId.snap @@ -1 +1 @@ -920865 \ No newline at end of file +913401 \ No newline at end of file diff --git a/.forge-snapshots/BinFungiblePositionManager_AddLiquidityTest#testAddLiquidityWithActiveId_WithHook.snap b/.forge-snapshots/BinFungiblePositionManager_AddLiquidityTest#testAddLiquidityWithActiveId_WithHook.snap index a27e83d..cfed5cb 100644 --- a/.forge-snapshots/BinFungiblePositionManager_AddLiquidityTest#testAddLiquidityWithActiveId_WithHook.snap +++ b/.forge-snapshots/BinFungiblePositionManager_AddLiquidityTest#testAddLiquidityWithActiveId_WithHook.snap @@ -1 +1 @@ -1271570 \ No newline at end of file +1262461 \ No newline at end of file diff --git a/.forge-snapshots/BinFungiblePositionManager_RemoveLiquidityTest#testRemoveLiquidityOutsideActiveId_ThreeBins.snap b/.forge-snapshots/BinFungiblePositionManager_RemoveLiquidityTest#testRemoveLiquidityOutsideActiveId_ThreeBins.snap index 3944fd9..8244bd3 100644 --- a/.forge-snapshots/BinFungiblePositionManager_RemoveLiquidityTest#testRemoveLiquidityOutsideActiveId_ThreeBins.snap +++ b/.forge-snapshots/BinFungiblePositionManager_RemoveLiquidityTest#testRemoveLiquidityOutsideActiveId_ThreeBins.snap @@ -1 +1 @@ -80168 \ No newline at end of file +75516 \ No newline at end of file diff --git a/.forge-snapshots/BinFungiblePositionManager_RemoveLiquidityTest#testRemoveLiquidityWithActiveId_ThreeBins.snap b/.forge-snapshots/BinFungiblePositionManager_RemoveLiquidityTest#testRemoveLiquidityWithActiveId_ThreeBins.snap index a0f61ab..cb9e5ad 100644 --- a/.forge-snapshots/BinFungiblePositionManager_RemoveLiquidityTest#testRemoveLiquidityWithActiveId_ThreeBins.snap +++ b/.forge-snapshots/BinFungiblePositionManager_RemoveLiquidityTest#testRemoveLiquidityWithActiveId_ThreeBins.snap @@ -1 +1 @@ -116617 \ No newline at end of file +111483 \ No newline at end of file diff --git a/.forge-snapshots/BinFungiblePositionManager_RemoveLiquidityTest#testRemoveLiquidity_Half.snap b/.forge-snapshots/BinFungiblePositionManager_RemoveLiquidityTest#testRemoveLiquidity_Half.snap index 53b2aa7..11b5cc3 100644 --- a/.forge-snapshots/BinFungiblePositionManager_RemoveLiquidityTest#testRemoveLiquidity_Half.snap +++ b/.forge-snapshots/BinFungiblePositionManager_RemoveLiquidityTest#testRemoveLiquidity_Half.snap @@ -1 +1 @@ -113422 \ No newline at end of file +108288 \ No newline at end of file diff --git a/.forge-snapshots/BinFungibleTokenTest#testBatchTransferFrom_FromBob.snap b/.forge-snapshots/BinFungibleTokenTest#testBatchTransferFrom_FromBob.snap index 60fbe72..6fa2493 100644 --- a/.forge-snapshots/BinFungibleTokenTest#testBatchTransferFrom_FromBob.snap +++ b/.forge-snapshots/BinFungibleTokenTest#testBatchTransferFrom_FromBob.snap @@ -1 +1 @@ -29704 \ No newline at end of file +29699 \ No newline at end of file diff --git a/.forge-snapshots/BinFungibleTokenTest#testBatchTransferFrom_FromOwner.snap b/.forge-snapshots/BinFungibleTokenTest#testBatchTransferFrom_FromOwner.snap index f1bd9cd..4bbdc2c 100644 --- a/.forge-snapshots/BinFungibleTokenTest#testBatchTransferFrom_FromOwner.snap +++ b/.forge-snapshots/BinFungibleTokenTest#testBatchTransferFrom_FromOwner.snap @@ -1 +1 @@ -29436 \ No newline at end of file +29431 \ No newline at end of file diff --git a/.forge-snapshots/BinSwapRouterTest#testExactInputSingle_DifferentRecipient.snap b/.forge-snapshots/BinSwapRouterTest#testExactInputSingle_DifferentRecipient.snap index 452c8ec..ade9a2f 100644 --- a/.forge-snapshots/BinSwapRouterTest#testExactInputSingle_DifferentRecipient.snap +++ b/.forge-snapshots/BinSwapRouterTest#testExactInputSingle_DifferentRecipient.snap @@ -1 +1 @@ -138072 \ No newline at end of file +135771 \ No newline at end of file diff --git a/.forge-snapshots/BinSwapRouterTest#testExactInputSingle_EthPool_SwapEthForToken.snap b/.forge-snapshots/BinSwapRouterTest#testExactInputSingle_EthPool_SwapEthForToken.snap index 4a4c3d5..0e014e2 100644 --- a/.forge-snapshots/BinSwapRouterTest#testExactInputSingle_EthPool_SwapEthForToken.snap +++ b/.forge-snapshots/BinSwapRouterTest#testExactInputSingle_EthPool_SwapEthForToken.snap @@ -1 +1 @@ -130798 \ No newline at end of file +128493 \ No newline at end of file diff --git a/.forge-snapshots/BinSwapRouterTest#testExactInputSingle_EthPool_SwapTokenForEth.snap b/.forge-snapshots/BinSwapRouterTest#testExactInputSingle_EthPool_SwapTokenForEth.snap index 500d244..57da915 100644 --- a/.forge-snapshots/BinSwapRouterTest#testExactInputSingle_EthPool_SwapTokenForEth.snap +++ b/.forge-snapshots/BinSwapRouterTest#testExactInputSingle_EthPool_SwapTokenForEth.snap @@ -1 +1 @@ -135611 \ No newline at end of file +133310 \ No newline at end of file diff --git a/.forge-snapshots/BinSwapRouterTest#testExactInputSingle_SwapForY_1.snap b/.forge-snapshots/BinSwapRouterTest#testExactInputSingle_SwapForY_1.snap index b1d42d8..355732f 100644 --- a/.forge-snapshots/BinSwapRouterTest#testExactInputSingle_SwapForY_1.snap +++ b/.forge-snapshots/BinSwapRouterTest#testExactInputSingle_SwapForY_1.snap @@ -1 +1 @@ -131578 \ No newline at end of file +129277 \ No newline at end of file diff --git a/.forge-snapshots/BinSwapRouterTest#testExactInputSingle_SwapForY_2.snap b/.forge-snapshots/BinSwapRouterTest#testExactInputSingle_SwapForY_2.snap index aec6048..5562ea3 100644 --- a/.forge-snapshots/BinSwapRouterTest#testExactInputSingle_SwapForY_2.snap +++ b/.forge-snapshots/BinSwapRouterTest#testExactInputSingle_SwapForY_2.snap @@ -1 +1 @@ -131653 \ No newline at end of file +129352 \ No newline at end of file diff --git a/.forge-snapshots/BinSwapRouterTest#testExactInput_MultiHopDifferentRecipient.snap b/.forge-snapshots/BinSwapRouterTest#testExactInput_MultiHopDifferentRecipient.snap index ab82568..2b1b06d 100644 --- a/.forge-snapshots/BinSwapRouterTest#testExactInput_MultiHopDifferentRecipient.snap +++ b/.forge-snapshots/BinSwapRouterTest#testExactInput_MultiHopDifferentRecipient.snap @@ -1 +1 @@ -164395 \ No newline at end of file +160822 \ No newline at end of file diff --git a/.forge-snapshots/BinSwapRouterTest#testExactOutputSingle_DifferentRecipient.snap b/.forge-snapshots/BinSwapRouterTest#testExactOutputSingle_DifferentRecipient.snap index e4b7373..70cfb0e 100644 --- a/.forge-snapshots/BinSwapRouterTest#testExactOutputSingle_DifferentRecipient.snap +++ b/.forge-snapshots/BinSwapRouterTest#testExactOutputSingle_DifferentRecipient.snap @@ -1 +1 @@ -143527 \ No newline at end of file +141280 \ No newline at end of file diff --git a/.forge-snapshots/BinSwapRouterTest#testExactOutputSingle_SwapForY_1.snap b/.forge-snapshots/BinSwapRouterTest#testExactOutputSingle_SwapForY_1.snap index 12e90bc..3fc0141 100644 --- a/.forge-snapshots/BinSwapRouterTest#testExactOutputSingle_SwapForY_1.snap +++ b/.forge-snapshots/BinSwapRouterTest#testExactOutputSingle_SwapForY_1.snap @@ -1 +1 @@ -137033 \ No newline at end of file +134786 \ No newline at end of file diff --git a/.forge-snapshots/BinSwapRouterTest#testExactOutputSingle_SwapForY_2.snap b/.forge-snapshots/BinSwapRouterTest#testExactOutputSingle_SwapForY_2.snap index 5dc5173..1b159ec 100644 --- a/.forge-snapshots/BinSwapRouterTest#testExactOutputSingle_SwapForY_2.snap +++ b/.forge-snapshots/BinSwapRouterTest#testExactOutputSingle_SwapForY_2.snap @@ -1 +1 @@ -137120 \ No newline at end of file +134873 \ No newline at end of file diff --git a/.forge-snapshots/BinSwapRouterTest#testExactOutput_MultiHopDifferentRecipient.snap b/.forge-snapshots/BinSwapRouterTest#testExactOutput_MultiHopDifferentRecipient.snap index aa63162..21df84f 100644 --- a/.forge-snapshots/BinSwapRouterTest#testExactOutput_MultiHopDifferentRecipient.snap +++ b/.forge-snapshots/BinSwapRouterTest#testExactOutput_MultiHopDifferentRecipient.snap @@ -1 +1 @@ -169086 \ No newline at end of file +165621 \ No newline at end of file diff --git a/.forge-snapshots/BinSwapRouterTest#testExactOutput_SingleHop.snap b/.forge-snapshots/BinSwapRouterTest#testExactOutput_SingleHop.snap index f89984c..390fd96 100644 --- a/.forge-snapshots/BinSwapRouterTest#testExactOutput_SingleHop.snap +++ b/.forge-snapshots/BinSwapRouterTest#testExactOutput_SingleHop.snap @@ -1 +1 @@ -129374 \ No newline at end of file +126842 \ No newline at end of file diff --git a/.forge-snapshots/CLSwapRouterTest#ExactInput.snap b/.forge-snapshots/CLSwapRouterTest#ExactInput.snap index 335d73c..ae63883 100644 --- a/.forge-snapshots/CLSwapRouterTest#ExactInput.snap +++ b/.forge-snapshots/CLSwapRouterTest#ExactInput.snap @@ -1 +1 @@ -247337 \ No newline at end of file +243641 \ No newline at end of file diff --git a/.forge-snapshots/CLSwapRouterTest#ExactInputSingle.snap b/.forge-snapshots/CLSwapRouterTest#ExactInputSingle.snap index c9a2f8a..f16ca95 100644 --- a/.forge-snapshots/CLSwapRouterTest#ExactInputSingle.snap +++ b/.forge-snapshots/CLSwapRouterTest#ExactInputSingle.snap @@ -1 +1 @@ -180361 \ No newline at end of file +177764 \ No newline at end of file diff --git a/.forge-snapshots/CLSwapRouterTest#ExactOutput.snap b/.forge-snapshots/CLSwapRouterTest#ExactOutput.snap index f644a0f..2b087a2 100644 --- a/.forge-snapshots/CLSwapRouterTest#ExactOutput.snap +++ b/.forge-snapshots/CLSwapRouterTest#ExactOutput.snap @@ -1 +1 @@ -253346 \ No newline at end of file +249640 \ No newline at end of file diff --git a/.forge-snapshots/CLSwapRouterTest#ExactOutputSingle.snap b/.forge-snapshots/CLSwapRouterTest#ExactOutputSingle.snap index 9f53bc9..95b027b 100644 --- a/.forge-snapshots/CLSwapRouterTest#ExactOutputSingle.snap +++ b/.forge-snapshots/CLSwapRouterTest#ExactOutputSingle.snap @@ -1 +1 @@ -179932 \ No newline at end of file +177330 \ No newline at end of file diff --git a/.forge-snapshots/NonfungiblePositionManager#collect.snap b/.forge-snapshots/NonfungiblePositionManager#collect.snap index 93d9009..26b9c4f 100644 --- a/.forge-snapshots/NonfungiblePositionManager#collect.snap +++ b/.forge-snapshots/NonfungiblePositionManager#collect.snap @@ -1 +1 @@ -199523 \ No newline at end of file +198059 \ No newline at end of file diff --git a/.forge-snapshots/NonfungiblePositionManager#decreaseLiquidity.snap b/.forge-snapshots/NonfungiblePositionManager#decreaseLiquidity.snap index 1659d3f..f0b6b55 100644 --- a/.forge-snapshots/NonfungiblePositionManager#decreaseLiquidity.snap +++ b/.forge-snapshots/NonfungiblePositionManager#decreaseLiquidity.snap @@ -1 +1 @@ -74225 \ No newline at end of file +72736 \ No newline at end of file diff --git a/.forge-snapshots/NonfungiblePositionManager#increaseLiquidity.snap b/.forge-snapshots/NonfungiblePositionManager#increaseLiquidity.snap index 52a0459..3dee0b7 100644 --- a/.forge-snapshots/NonfungiblePositionManager#increaseLiquidity.snap +++ b/.forge-snapshots/NonfungiblePositionManager#increaseLiquidity.snap @@ -1 +1 @@ -81392 \ No newline at end of file +79553 \ No newline at end of file diff --git a/.forge-snapshots/NonfungiblePositionManager#mint.snap b/.forge-snapshots/NonfungiblePositionManager#mint.snap index fb873bd..0278ff1 100644 --- a/.forge-snapshots/NonfungiblePositionManager#mint.snap +++ b/.forge-snapshots/NonfungiblePositionManager#mint.snap @@ -1 +1 @@ -627202 \ No newline at end of file +624105 \ No newline at end of file diff --git a/foundry.toml b/foundry.toml index 1df4ebe..ad7233d 100644 --- a/foundry.toml +++ b/foundry.toml @@ -1,7 +1,7 @@ [profile.default] src = 'src' out = 'foundry-out' -solc_version = '0.8.24' +solc_version = '0.8.26' optimizer_runs = 400 via_ir = false ffi = true From 9e89b43a4a156115446c2a152df9a799ce768e86 Mon Sep 17 00:00:00 2001 From: ChefMist <133624774+ChefMist@users.noreply.github.com> Date: Tue, 4 Jun 2024 22:58:08 +0800 Subject: [PATCH 4/7] feat: update test.yml follow v4-core --- .github/workflows/test.yml | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 72ea2d9..bbf554d 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -6,6 +6,10 @@ on: - main pull_request: +concurrency: + group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }} + cancel-in-progress: true + jobs: forge-tests: name: Forge Tests @@ -29,6 +33,6 @@ jobs: version: nightly - name: Run tests - run: forge test -vvv + run: forge test --isolate -vvv env: - FOUNDRY_PROFILE: ci + FOUNDRY_PROFILE: ${{ github.ref_name == 'main' && 'ci_main' || 'ci' }} \ No newline at end of file From 3a2ba26a09e62decf5a4242ea0d9021fbeb73cf7 Mon Sep 17 00:00:00 2001 From: ChefMist <133624774+ChefMist@users.noreply.github.com> Date: Tue, 4 Jun 2024 22:58:27 +0800 Subject: [PATCH 5/7] add line break --- .github/workflows/test.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index bbf554d..5df94cb 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -35,4 +35,4 @@ jobs: - name: Run tests run: forge test --isolate -vvv env: - FOUNDRY_PROFILE: ${{ github.ref_name == 'main' && 'ci_main' || 'ci' }} \ No newline at end of file + FOUNDRY_PROFILE: ${{ github.ref_name == 'main' && 'ci_main' || 'ci' }} From bbdacba698b77350889f1523b7805fc92c6a49bb Mon Sep 17 00:00:00 2001 From: ChefMist <133624774+ChefMist@users.noreply.github.com> Date: Tue, 4 Jun 2024 23:04:39 +0800 Subject: [PATCH 6/7] feat: update foundry.toml following v4-core --- foundry.toml | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/foundry.toml b/foundry.toml index ad7233d..a66b4e9 100644 --- a/foundry.toml +++ b/foundry.toml @@ -16,11 +16,17 @@ evm_version = 'cancun' runs = 1000 # change this for higher number of fuzz/invariant locally [profile.ci.fuzz] -runs = 100000 +runs = 10000 [profile.ci.invariant] -runs = 10000 # The number of calls to make in the invariant tests +runs = 1000 # The number of calls to make in the invariant tests call_override = false # Override calls fail_on_revert = false # Fail the test if the contract reverts -# See more config options https://github.com/foundry-rs/foundry/tree/master/config \ No newline at end of file +[profile.ci_main.fuzz] +runs = 100000 + +[profile.ci_main.invariant] +runs = 10000 # The number of calls to make in the invariant tests +call_override = false # Override calls +fail_on_revert = false # Fail the test if the contract reverts From 30791b12b137bc2de041923267ebff72b4fe19cf Mon Sep 17 00:00:00 2001 From: ChefMist <133624774+ChefMist@users.noreply.github.com> Date: Wed, 5 Jun 2024 11:16:26 +0800 Subject: [PATCH 7/7] ci: set invariant depth to before --- foundry.toml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/foundry.toml b/foundry.toml index a66b4e9..ffb2bbd 100644 --- a/foundry.toml +++ b/foundry.toml @@ -15,6 +15,9 @@ evm_version = 'cancun' [fuzz] runs = 1000 # change this for higher number of fuzz/invariant locally +[invariant] +depth = 15 # revert to 15 as default is 500: https://github.com/foundry-rs/foundry/pull/7957 + [profile.ci.fuzz] runs = 10000