Skip to content

Minor issue: It is possible to transfer more than user balance when transfering to self with transferFrom  #375

@yaronvel

Description

@yaronvel

In transferFrom first receiver balance is increment and only then spender balance is decremented.
This allows to send more than you have. It is very minor as you send it to your self and total balance is not affected.
However, it is inconsistent with transfer where you first decrements sender balance and only then increment receiver balance.

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