Double zero address check as _mint() function already checks for zero address.
The mint()
function of DecentralizedStableCoin
contract calls the _mint()
function of ERC20 contract which already checks for zero address before executing. So, zero address check in the mint()
function is not required.
It causes no significant impact but removing the zero address check can reduce some contract size.
Manual analysis
Remove the zero address check
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.