when function getBeneficiaryIndex return 0 it is not really clear if the item does not exisit (returns 0) or the item is at position 0(returns 0). hence it returns 0 fir different confditions.
Not critical at present as fucntion is not used for itnernal logic, but if in furutre it is used this behaviour might trigger erros
foundry
distinguish between conditions buy reverting or returning -1
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.