Function mpl_token_metadata::utils::puff_out_data_fields
source · pub fn puff_out_data_fields(metadata: &mut Metadata)
Expand description
Strings need to be appended with \0
s in order to have a deterministic length.
This supports the memcmp
filter on get program account calls.
NOTE: it is assumed that the metadata fields are never larger than the respective MAX_LENGTH