PatrickAlphaC / hardhat-smartcontract-lottery-fcc

MIT License
117 stars 183 forks source link

Updated enterRaffle() logic #188

Closed stevegee1 closed 9 months ago

stevegee1 commented 10 months ago

To avoid redundancy of the addresses in the array, s_players, if msg.sender calls the enterRaffle() multiple times:

PatrickAlphaC commented 9 months ago

I love your PFP.

Going to close to keep the code as similar to the video as possible, but you're right!! This function could use an improvement like this!