Skip to content

Commit

Permalink
Modify onlyOwner access modifier for reduceMaxSupply function
Browse files Browse the repository at this point in the history
  • Loading branch information
AutoPR committed Apr 30, 2023
1 parent 4f48fe1 commit 5557b2a
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions ERC721CommunityBase.sol
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,10 @@ contract ERC721CommunityBase is Context, Ownable, ERC721Enumerable, ERC721URISto
require(newMaxSupply >= _totalMinted, "ERC721CommunityBase: New max supply is less than total minted");
_maxSupply = newMaxSupply;
}
require(newMaxSupply <= _maxSupply, "ERC721CommunityBase: New max supply is greater than current max supply");
require(newMaxSupply >= _totalMinted, "ERC721CommunityBase: New max supply is less than total minted");
_maxSupply = newMaxSupply;
}

// Overriden functions from OpenZeppelin's ERC721

Expand Down

0 comments on commit 5557b2a

Please sign in to comment.