Open c4-bot-1 opened 7 months ago
Mitigation of H-07: Mitigated, with new issue or error
H-07: Fighters cannot be minted after the initial generation due to uninitialized numElements mapping
The issue was that numElements[] were not and could not be set.
numElements[]
A function setNumElements() has been added.
setNumElements()
Since numElements[] can now map to an arbitrary uint8 there is an issue if the number of elements for a generation is a multiple of 31. This is reported separately in "Element and weight correlation when numElements is multiple of 31".
numElements
jhsagd76 marked the issue as satisfactory
numElements will never be a multiple of 31. I doubt we'll ever have more than 16 elements.
Lines of code
Vulnerability details
Mitigation of H-07: Mitigated, with new issue or error
Mitigated issue
H-07: Fighters cannot be minted after the initial generation due to uninitialized numElements mapping
The issue was that
numElements[]
were not and could not be set.Mitigation review - setter added
A function
setNumElements()
has been added.New issue
Since
numElements[]
can now map to an arbitrary uint8 there is an issue if the number of elements for a generation is a multiple of 31. This is reported separately in "Element and weight correlation whennumElements
is multiple of 31".