Skip to content

Commit

Permalink
Fixed offsets calculation in tests
Browse files Browse the repository at this point in the history
  • Loading branch information
byshape committed Jan 10, 2024
1 parent 41b8350 commit 8c7dc40
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/utils/BaseSetup.sol
Original file line number Diff line number Diff line change
Expand Up @@ -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));
}
Expand Down

0 comments on commit 8c7dc40

Please sign in to comment.