Skip to content

Remove check for address zero in ERC1155.balanceOf #4259

@frangio

Description

@frangio

We have a require statement in this function that doesn't seem to be mandated ERC-1155, or at least I can't find it in the spec. It looks like it should be removed.

function balanceOf(address account, uint256 id) public view virtual override returns (uint256) {
require(account != address(0), "ERC1155: address zero is not a valid owner");

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions