Skip to content

Transfer of tokens from contract deployer to another address does not add the deployer to the owners count #4

@Isabello

Description

@Isabello

When sending tokens from the contract deployer to another address, the holder count should equal 2 as the owner and the other address should both be considered holders. _addHolder only gets called once as the contract owner is never initialized as a holder. We would expect the contract owner to get added by this action if they werent already but it is ignored from by the modifier holder_calculate.

The fix is to ensure the contract deployer gets added as a holder when initializing the supply

image

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions