Skip to content

Commit

Permalink
remove _exists require in _safeMint
Browse files Browse the repository at this point in the history
  • Loading branch information
DaniPopes committed Jan 31, 2022
1 parent deb049f commit 1b32797
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions contracts/ERC721A.sol
Original file line number Diff line number Diff line change
Expand Up @@ -294,8 +294,6 @@ contract ERC721A is Context, ERC165, IERC721, IERC721Metadata, IERC721Enumerable
) internal {
uint256 startTokenId = currentIndex;
require(to != address(0), 'ERC721A: mint to the zero address');
// We know if the first token in the batch doesn't exist, the other ones don't as well, because of serial ordering.
require(!_exists(startTokenId), 'ERC721A: token already minted');
require(quantity > 0, 'ERC721A: quantity must be greater than 0');

_beforeTokenTransfers(address(0), to, startTokenId, quantity);
Expand Down

0 comments on commit 1b32797

Please sign in to comment.