Skip to content

Tokens with empty name/symbol metadata can't be attested on Sui #4648

@djb15

Description

@djb15

Description

Because wormhole::bytes32::to_utf8 trims trailing zeros without guarding against an emptied buffer, any attempts to register a token with an empty string (i.e. 32 zero bytes) on Sui will result in a panic. It is thus impossible to transfer such tokens with empty metadata to Sui.

Recommendation

Practically all valuable tokens have a non-empty name and symbol already, but this is a requirement for being able to utilise the Wormhole wrapped token transfers (WTT) bridge to Sui.

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