Description
ERC173Facet and LibERC173 handle ownership renounce conditions differently.
LibERC173.transferOwnership reverts if the owner is already renounced (address(0)).
ERC173Facet.transferOwnership does not perform this check.
Expected Behavior
Both should revert under the same conditions to maintain consistent behavior across the diamond.
Suggested Fix
Add the renounce check in ERC173Facet.transferOwnership:
if (s.owner == address(0)) revert OwnableAlreadyRenounced();
Description
ERC173FacetandLibERC173handle ownership renounce conditions differently.LibERC173.transferOwnershipreverts if the owner is already renounced (address(0)).ERC173Facet.transferOwnershipdoes not perform this check.Expected Behavior
Both should revert under the same conditions to maintain consistent behavior across the diamond.
Suggested Fix
Add the renounce check in
ERC173Facet.transferOwnership: