pub fn create_mint_redeemer(label: String) -> Vec<u8> ⓘExpand description
Creates a mint redeemer for a Plutus script.
This function encodes a given string label as a hex string, converts it to bytes,
and wraps it into PlutusData of type BoundedBytes. The result is serialized
as a fragment.
§Arguments
label- A string that represents the label to encode.
§Returns
Vec<u8>- The encoded PlutusData fragment as a byte vector.
§Panics
- If the label cannot be converted into a valid hex string.