pub fn is_txn_outgoing<const GUARD_ID: u32>(
hook_acc_id: &mut AccountId,
otnx_acc_id: &mut AccountId,
) -> Result<bool>
Expand description
Checks whether the transaction is outgoing
Pay attention to the GUARD_ID parameter. This should be unique on every call, through the entire hook code. Otherwise you will encounter guard violation during the execution of your hook.