The constructor
in the LikeRegistry
contract doesn't have an address(0) check for the _profileNFT
parameter:
If _profileNFT
is set to address(0)
, the contract will reference a null address, which would cause reverts or unintended behavior when interacting with profileNFT
.
Any function that depends on profileNFT
(e.g., calling profileNFT.mintProfile(...)
) will fail if the zero address is used.
Slither
Consider adding an address(0) check to avoid protocol failures.
Please read the CodeHawks documentation to know which submissions are valid. If you disagree, provide a coded PoC and explain the real likelihood and the detailed impact on the mainnet without any supposition (if, it could, etc) to prove your point.
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.