You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
if (winningTickets != tickets.length) {
// Payout value equal to number of bought tickets - paid for winning tickets
(bool sent, ) = payable(msg.sender).call{
value: (tickets.length - winningTickets) * MINT_COST
}("");
require(sent, "Unsuccessful in refund");
}
here there is cpmparison of winning ticket != tickets.length.
What if number of tickets is 100 and nobody is a winner. since there is no winner winningTickets is 0. And the function will transfer the money as refund?
Am I missing something?
The text was updated successfully, but these errors were encountered:
Hey nice stuff!
uint256 winningTickets = nftCount - tmpCount;
here there is cpmparison of winning ticket != tickets.length.
What if number of tickets is 100 and nobody is a winner. since there is no winner winningTickets is 0. And the function will transfer the money as refund?
Am I missing something?
The text was updated successfully, but these errors were encountered: