to the following function in order to mint NFT to the contract?
function publicMint(
address to,
uint256 id,
uint256 amount,
bytes memory data
) virtual payable external {
require(!paused, 'paused');
require(amount <= maxPerUser, '> maxPerUser');
require(amount + totalSupply(MALE) + totalSupply(FEMALE) <= maxCap, '> maxcap');
require(msg.value >= price(amount));
super.mint(to, id, amount, data);
}
0x00
Обсуждают сегодня