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.
Description
Because
wormhole::bytes32::to_utf8trims 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.