Skip to content

[Improvement] Align renounce logic between ERC173Facet and LibERC173 #46

@CodeCryptX

Description

@CodeCryptX

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();

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions