Beginner FriendlyFoundryNFT
100 EXP
View results
Submission Details
Severity: low
Invalid

_isActivePlayer() can't be called

Summary

_isActivePlayer() is never called.

Vulnerability Details

_isActivePlayer() is intended to determine whether a player is participating in the raffle. However, it is marked as an internal function but is never actually called. This presents an issue, the users who wish to check whether they are part of the raffle are unable to do so because the function is inaccessible due to its internal visibility.

function _isActivePlayer() internal view returns (bool) {
for (uint256 i = 0; i < players.length; i++) {
if (players[i] == msg.sender) {
return true;
}
}
return false;
}

Impact

Function can't be called.

Tools Used

Manual review.

Recommendations

Set the function visibility to public.

Updates

Lead Judging Commences

Hamiltonite Lead Judge almost 2 years ago
Submission Judgement Published
Invalidated
Reason: Non-acceptable severity

Support

FAQs

Can't find an answer? Chat with us on Discord, Twitter or Linkedin.