Improper handling of deleting array elements with `_beneficiary` array
Line 3 - The delete function will just 0 out that element in the array. Meaning there will be a hole in the array with a 0 address. Refer - https://blog.finxter.com/how-to-delete-an-element-from-an-array-in-solidity/ .
Subsequent operations on the `beneficiary` array will lead to errors
Functions that use this array will lead to errors such as the -
and this function
Manual review of elemental structures of code
Reference against similar cases with problematic data structures
AI for understanding impact of the errors
Proper handling of removing elements from the array
At the current moment in time I am a beginner in reading solidity code and am unable to provide a fully fleshed out poc. That would be possible after I understand how to use foundry vm pranks. etc.
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.