FUNCTION
is_recipient_allowed
function is_recipient_allowed(rule: rule, recipient_id: byte_array, sender_id: byte_array): booleanUtility function which returns whether a rule allows a certain account ID as recipient. Since some rules allow all recipients as long as the sender is the same as the recipient, the sender ID is needed as well.
Parameters
- rule — the rule to check
- recipient_id — the recipient ID to check
- sender_id — the sender ID to check
© 2024 Chromia