I want to mint NFT using ERC721A but I cant use the TokenURI.
function prizeDistribution(uint256 jackPotId)
external
payable
override
returns(uint256)
{
require(_dateTime._now() >= _jackPots[jackPotId]._endTime ,
"Time has not passed enough for this JackPot");
require(_dateTime.get15DaysSeconds() >= _jackPots[jackPotId]._endTime,"15 Days have not passed for this jackpot");
//check time after endTime ,that has it been 15 days ?
address[] memory participants = this.getParticipantAddresses(jackPotId);
//SideNote to call another implemented external function, use this keyword
//then make a function in which the participants list is passed
address winner = this.calculateRandomWinnerFromList(participants,jackPotId);
//generate a single random number from the list of participants length
//return that address and rest of the list excluding that winner
IERC20(0xd9145CCE52D386f254917e481eB44e9943F39138).transfer(winner,_jackPots[jackPotId]._prizePool);
_jackPots[jackPotId]._prizePool = 0;
/*
I want to use ERC721A and batch mint N amount of participants
that took part and transfer nfts to them
*/
return 1;
}