From 8c7dc4083981e025f8ec11f71cf4c512e50b630e Mon Sep 17 00:00:00 2001 From: byshape Date: Wed, 10 Jan 2024 18:57:02 +0000 Subject: [PATCH] Fixed offsets calculation in tests --- test/utils/BaseSetup.sol | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/utils/BaseSetup.sol b/test/utils/BaseSetup.sol index 67f1df8..c5647bb 100644 --- a/test/utils/BaseSetup.sol +++ b/test/utils/BaseSetup.sol @@ -316,7 +316,7 @@ contract BaseSetup is Test { uint256 sum = 0; for (uint256 i = 0; i < allInteractions.length; i++) { if (allInteractions[i].length > 0) { - sum += allInteractions[i].length - 1; + sum += allInteractions[i].length; } offsets |= bytes32(sum << (i * 32)); }