Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Update contracts/token/ERC721/extensions/ERC721Consecutive.sol
Co-authored-by: Francisco <[email protected]>
  • Loading branch information
JulissaDantes and frangio authored Jan 12, 2023
commit aa1a1580fd9ea2915a40a8c0a35bbde8e2fe15bd
2 changes: 1 addition & 1 deletion contracts/token/ERC721/extensions/ERC721Consecutive.sol
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ abstract contract ERC721Consecutive is IERC2309, ERC721 {

// minting a batch of size 0 is a no-op
if (batchSize > 0) {
require(!(address(this).code.length > 0), "ERC721Consecutive: batch minting restricted to constructor");
require(address(this).code.length == 0, "ERC721Consecutive: batch minting restricted to constructor");
require(to != address(0), "ERC721Consecutive: mint to the zero address");
require(batchSize <= _maxBatchSize(), "ERC721Consecutive: batch too large");

Expand Down