Description:
The constructor does not check if the initialAdmin
and initialNFTDescriptor
addresses are zero addresses.
Impact:
If zero addresses are passed as parameters, the contract could end up with invalid addresses for admin and NFT descriptor, leading to loss of functionality.
Proof of Concept:
The constructor does not validate the addresses:
Recommended Mitigation:
Add checks to ensure the addresses are not zero.
https://docs.codehawks.com/hawks-auditors/how-to-determine-a-finding-validity
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.