The request_raffle_winner()
function of the Snek-Raffle contract is requesting a random number to chose a random winner, and then returning the number of minted Snek NFTs instead of the ID of such request.
Notice that, after requesting a random number using Chainlink VRF, instead of returning request_id
, the Snek-Raffle contract is returning the total number of NFTs minted so far:
Users may think that after calling the request_raffle_winner()
function they will get the request ID of such request instead of the misleading total supply of Snek NFTs.
Manual analysis.
It is recommended to return the request ID as shown below instead of the total supply of Snek NFTs:
The contest is live. Earn rewards by submitting a finding.
This is your time to appeal against judgements on your submissions.
Appeals are being carefully reviewed by our judges.