validate_asset_name

Ensures that the text input is at most 1024 characters long.

Throws "INVALID TEXT" otherwise.

Parameters

name

the text to validate