Skip to content

Missing check for null address in Address.sendValue #4703

Description

@AntonGulak

https://github.com/OpenZeppelin/openzeppelin-contracts/blob/master/contracts/utils/Address.sol#L41

Expected: The function should revert if the recipient is the zero address.
Actual: The function sends the Ether to the zero address, effectively burning it.

The function should include a check for the recipient != address(0) before proceeding with the transfer. Without this check, if the recipient is accidentally set as the zero address, any Ether sent using this function will be permanently lost.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions