I am working on a contract which will Mint 100 NFTs to a wallet upon deploy. I am trying to understand why Etherscan is showing address(0) as a Holder.
Constructor:
constructor(
string memory _name,
string memory _symbol,
string memory _contractURI,
string memory _initBaseURI,
string memory _initNotRevealedURI
) ERC721(_name, _symbol) PaymentSplitter(addressList, shareList) {
setContractURI(_contractURI);
setBaseURI(_initBaseURI);
setNotRevealedURI(_initNotRevealedURI);
_mintNFT(marketingWallet, 100);
}
Mint function:
/**
* @dev Internal mint function
*/
function _mintNFT(address _to, uint16 _mintAmount) private {
addressMints[_to] += _mintAmount;
for (uint256 i = 0; i < _mintAmount; i++) {
_safeMint(_to, _getTokenToBeMinted(totalMinted()));
_totalMintSupply++;
}
}