- Solidity version is not the latest 0.8.0
- Duplicate Address Check in
enterRaffle
is not Gas efficient
- No address zero within the players.
- Time Check tto make sure they enter within the acurate time.
for (uint256 i = 0; i < players.length - 1; i++) {
for (uint256 j = i + 1; j < players.length; j++) {
require(players[i] != players[j], "PuppyRaffle: Duplicate player");
}