i was wondering if someone can help me here.
I'm minting an nft by this smart contract, and the problem is that the tokenid count starts with id 0, and that is an error. It must start in id 1.
Someone can help me please
This is my mint loop function where the error is happening.
I already change the for uint256 i = 0
for i = 1
and doesnt work.
function _mintLoop(address _receiver, uint256 _mintAmount) internal {
for (uint256 i = 0; i < _mintAmount; i++) {
uint256 tokenId = _tokenIdCounter.current();
_tokenIdCounter.increment();
_safeMint(_receiver, tokenId);
tokensOfOwner[_receiver].push(tokenId);
}
}