Untitled
unknown
plain_text
2 years ago
638 B
3
Indexable
Never
pragma solidity ^0.8.0; import "@openzeppelin/contracts/token/ERC721/extensions/ERC721Enumerable.sol"; import "@openzeppelin/contracts/access/Ownable.sol"; contract Xenturion is ERC721Enumerable, Ownable { uint256 public constant MAX_MINTS = 128; uint256 private _currentTokenId = 0; constructor() ERC721("Xenturion", "XEN") {} function batchMint(uint256 numMints) public onlyOwner { require(_currentTokenId + numMints <= MAX_MINTS, "Exceeds maximum mints"); for (uint256 i = 0; i < numMints; i++) { _safeMint(msg.sender, _currentTokenId); _currentTokenId++; } } }