49726 sc insight there is a redundant zero address check in the validatorfacet sol that is obsolete and could never be true
Description
Brief/Intro
Vulnerability Details
// Update L2 Withdraw Address if provided and different
if (newL2WithdrawAddress != address(0) && newL2WithdrawAddress != validator.l2WithdrawAddress) {
if (newL2WithdrawAddress == address(0)) {
// Add specific check for zero address
revert ZeroAddress("newL2WithdrawAddress");
}
validator.l2WithdrawAddress = newL2WithdrawAddress;
}Impact Details
References
Previous50691 sc insight no validator limit can lead to dosNext51707 sc insight gas inefficiency due to redundant validatevalidatorexists modifier in requestcommissionclaim
Was this helpful?