Skip to content

Commit

Permalink
added one more target != addr 0 assumption
Browse files Browse the repository at this point in the history
  • Loading branch information
parodime committed Nov 4, 2024
1 parent ad8d479 commit 2e5f7d1
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions packages/contracts-rfq/test/libs/ZapDataV1.t.sol
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,7 @@ contract ZapDataV1Test is Test {
public
{
vm.assume(payload.length < type(uint16).max);
vm.assume(target != address(0));
// Make sure that (amountPosition + 32) is outside the bounds of the payload.
uint16 incorrectMin = payload.length > 31 ? uint16(payload.length) - 31 : 0;
uint16 incorrectMax = type(uint16).max - 1;
Expand Down

0 comments on commit 2e5f7d1

Please sign in to comment.