Skip to content

Optimization in ERC1155's safeTransferFrom #94

@remedcu

Description

@remedcu

Line 119 in ERC1155 can be rewritten as:

from == msg.sender || _operatorApprovals[from][msg.sender],

Where the == true part is not necessary, as if it is true, the condition will still work correctly, and the same for false value.

Metadata

Metadata

Assignees

No one assigned

    Labels

    P3Med/low - Nice to haveenhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions