Modified rule transfersHaveSameLengthInputArrays (passing) to limit array size

pull/3478/head
Thomas Adams 3 years ago
parent 7946806fb3
commit 75a3602ba6
  1. 5
      certora/specs/ERC1155Supply.spec

@ -117,6 +117,11 @@ rule transfersHaveSameLengthInputArrays {
address holder; address recipient; bytes data;
uint256[] tokens; uint256[] transferAmounts;
// uint max_int = 0xffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff;
uint max_int = 0xffffffffffffffffffffffffffffffff;
// require tokens.length >= 0 && tokens.length <= type(uint128).max
require tokens.length >= 0 && tokens.length <= max_int;
require transferAmounts.length >= 0 && transferAmounts.length <= max_int;
safeBatchTransferFrom(e, holder, recipient, tokens, transferAmounts, data);

Loading…
Cancel
Save