修改修改batch数量限制的方法名

This commit is contained in:
CounterFire2023 2023-07-07 15:43:44 +08:00
parent 13a5741c3e
commit 6669ded215

View File

@ -137,8 +137,10 @@ contract BEBadge is AccessControl, ERC721Enumerable {
_metaAddress = metaAddress; _metaAddress = metaAddress;
} }
function updateDuation(uint256 valNew) external onlyRole(DEFAULT_ADMIN_ROLE) { function updateBatchLimit(
require(valNew > 1, "batch size too short"); uint256 valNew
) external onlyRole(DEFAULT_ADMIN_ROLE) {
require(valNew > 0, "batch size too short");
maxBatchSize = valNew; maxBatchSize = valNew;
} }