Skip to content

"care to help" should check if target address is a contract #683

@phraktle

Description

@phraktle

We should only worry about zero ETH balance at recipient if it's a plain address.

const code = web3.eth.getCode(address);
const isPlainAddress = code === '0x';

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions