FUNCTION

validate_recipient_id

function validate_recipient_id(recipient_id: byte_array)

Checks if the recipient id has the correct size

Throws "INVALID RECIPIENT ID" if the recipient's id length is longer than 1024 bytes

Should be used inside other functions to validate the size of the recipient's id in transfers

Example: validate_recipient_id(x"") will throw this error: "INVALID RECIPIENT ID: x"". Recipient id has invalid length. Expected 1024 bytes, but found <0>"

Parameters

  • recipient_id — The id to validate
© 2024 Chromia