Skip to content

Commit d90b337

Browse files
nkrishangKrishang Nadgauda
andauthored
Fix: delete require statement in setMaxTotalSupply (#188)
Co-authored-by: Krishang Nadgauda <[email protected]>
1 parent d42cb17 commit d90b337

File tree

2 files changed

+0
-2
lines changed

2 files changed

+0
-2
lines changed

contracts/drop/DropERC20.sol

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -463,7 +463,6 @@ contract DropERC20 is
463463

464464
/// @dev Lets a contract admin set the global maximum supply of tokens.
465465
function setMaxTotalSupply(uint256 _maxTotalSupply) external onlyRole(DEFAULT_ADMIN_ROLE) {
466-
require(_maxTotalSupply < totalSupply(), "already minted more than desired max supply");
467466
maxTotalSupply = _maxTotalSupply;
468467
emit MaxTotalSupplyUpdated(_maxTotalSupply);
469468
}

contracts/drop/DropERC721.sol

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -632,7 +632,6 @@ contract DropERC721 is
632632

633633
/// @dev Lets a contract admin set the global maximum supply for collection's NFTs.
634634
function setMaxTotalSupply(uint256 _maxTotalSupply) external onlyRole(DEFAULT_ADMIN_ROLE) {
635-
require(_maxTotalSupply < nextTokenIdToMint, "existing > desired max supply");
636635
maxTotalSupply = _maxTotalSupply;
637636
emit MaxTotalSupplyUpdated(_maxTotalSupply);
638637
}

0 commit comments

Comments
 (0)