Skip to content

[BUG]: The function does not enforce a minimum length for the name or symbol strings. #40

@aniket866

Description

@aniket866

Bug Description

  • **Where?:** Factory.sol — createTNT function.

  • Issue: The function does not enforce a minimum length for the name or symbol strings.

  • Fix: Add require(bytes(name).length > 0 && bytes(symbol).length > 0, "Invalid metadata").

  • Why?: Prevents the creation of "ghost" tokens with empty identifiers that break UI displays.

Steps to Reproduce

N/A

Logs and Screenshots

N/A

Environment Details

N/A

Impact

Medium - Feature works but has issues

Code of Conduct

  • I have joined the Discord server and will post updates there
  • I have searched existing issues to avoid duplicates

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions