From 6669ded2154f2c8a9ee2ebffa332f2d3af3b0670 Mon Sep 17 00:00:00 2001 From: CounterFire2023 <136581895+CounterFire2023@users.noreply.github.com> Date: Fri, 7 Jul 2023 15:43:44 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E4=BF=AE=E6=94=B9batch?= =?UTF-8?q?=E6=95=B0=E9=87=8F=E9=99=90=E5=88=B6=E7=9A=84=E6=96=B9=E6=B3=95?= =?UTF-8?q?=E5=90=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- contracts/tokens/erc721/BEBadge.sol | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/contracts/tokens/erc721/BEBadge.sol b/contracts/tokens/erc721/BEBadge.sol index 2f1969c..7ba7831 100644 --- a/contracts/tokens/erc721/BEBadge.sol +++ b/contracts/tokens/erc721/BEBadge.sol @@ -137,8 +137,10 @@ contract BEBadge is AccessControl, ERC721Enumerable { _metaAddress = metaAddress; } - function updateDuation(uint256 valNew) external onlyRole(DEFAULT_ADMIN_ROLE) { - require(valNew > 1, "batch size too short"); + function updateBatchLimit( + uint256 valNew + ) external onlyRole(DEFAULT_ADMIN_ROLE) { + require(valNew > 0, "batch size too short"); maxBatchSize = valNew; }