changeFeeAddress function in the PuppyRaffle contract does not check if the newFeeAddress provided is a zero address (0x0)
This could lead to unexpected behavior, as any fees sent to the feeAddress would be effectively burned and lost forever.
Manual
To fix this issue, you should add a check at the beginning of the changeFeeAddress function to ensure that newFeeAddress is not the zero address. Here's an example of how you might do this:
function changeFeeAddress(address newFeeAddress) public {
require(newFeeAddress != address(0), "New fee address cannot be the zero address");
feeAddress = newFeeAddress;
}
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.