diff --git a/contracts/protocol/bases/OfferBase.sol b/contracts/protocol/bases/OfferBase.sol index 3e26ae371..01bc7cb24 100644 --- a/contracts/protocol/bases/OfferBase.sol +++ b/contracts/protocol/bases/OfferBase.sol @@ -324,7 +324,7 @@ contract OfferBase is ProtocolBase, IBosonOfferEvents { require(offer.quantityAvailable >= _length, INVALID_RANGE_LENGTH); // Prevent reservation of too large range, since it affects exchangeId - require(_length < (1 << 64), INVALID_RANGE_LENGTH); + require(_length <= type(uint64).max, INVALID_RANGE_LENGTH); // Get starting token id ProtocolLib.ProtocolCounters storage pc = protocolCounters();