Module mpl_token_metadata::utils
source · Structs
Constants
Functions
Create a new account instruction
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_LENGTHPads the string to the desired size with
0u8
s.
NOTE: it is assumed that the string’s size is never larger than the given size.Pads the string to the desired size with
0u8
s.
NOTE: it is assumed that the string’s size is never larger than the given size.