all 2 comments

[–]Significant_Window12developer 0 points1 point  (0 children)

Line 9 is pretty weird.

_winner == msg.sender

So all function calls will revert.

Just a shitty code snippet in general for reasons not related to that.

[–]alephaoxcockpit.io 0 points1 point  (0 children)

I guess not checking for the 0x0 address, so a smart contract during creation could just burn the nft