Skip to content

contract.MintPassExtension

Aleksey Bykhun edited this page Jan 18, 2023 · 1 revision

MintPassExtension

Git Source

Inherits: NFTExtension, Ownable, SaleControl

State Variables

price

uint256 public price;

nRemainingTokens

uint256 public nRemainingTokens;

mintPassAddress

address public mintPassAddress;

usedTokenIds

mapping(uint256 => bool) public usedTokenIds;

Functions

constructor

constructor(address _nft, address _mintPassAddress, uint256 _price, uint256 _maxPerExtension)
    NFTExtension(_nft)
    SaleControl;

updatePrice

function updatePrice(uint256 _price) public onlyOwner;

updateMintPassAddress

function updateMintPassAddress(address _mintPassAddress) public onlyOwner;

mint

function mint(uint256[] memory mintPassTokenIds) public payable whenSaleStarted;
Clone this wiki locally