From f8b92e11b98719cc056b5fcd15b218bf9a6c6fff Mon Sep 17 00:00:00 2001 From: Justin Silver Date: Sat, 20 Jan 2024 15:19:05 -0800 Subject: [PATCH] inc() --- contracts/SamWitchOrderBook.sol | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/contracts/SamWitchOrderBook.sol b/contracts/SamWitchOrderBook.sol index 50f70aa..a4fd32b 100644 --- a/contracts/SamWitchOrderBook.sol +++ b/contracts/SamWitchOrderBook.sol @@ -797,7 +797,8 @@ contract SamWitchOrderBook is ISamWitchOrderBook, ERC1155Holder, UUPSUpgradeable tokenIdsClaimable[orderId][_tokenId] += quantityNFTClaimable; _orderIdsPool[numberOfOrders] = orderId; - _quantitiesPool[numberOfOrders++] = quantityNFTClaimable; + _quantitiesPool[numberOfOrders] = quantityNFTClaimable; + numberOfOrders = numberOfOrders.inc(); if (numberOfOrders >= MAX_ORDERS_HIT) { revert TooManyOrdersHit();