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

`PuppyRaffle:: _isActivePlayer` is declared but never called making it unusable

Summary

_isActivePlayer is an internal function of contract which is never called.

Vulnerability Details

Avoid having any code that is not being used, as that will reduce the overall code size and less gas consumption during deployment.

Impact

It does not impact working of contract in any way.

Tools Used

Manual Review

Recommendations

Remove this function from code base or make it an external view function so people can use it.

function _isActivePlayer() external view returns (bool) {
for (uint256 i = 0; i < players.length; i++) {
if (players[i] == msg.sender) {
return true;
}
}
return false;
}
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.