Function xrpl_hooks::helpers::is_txn_ingoing[][src]

pub fn is_txn_ingoing<const GUARD_ID: u32>(
    hook_acc_id: &mut AccountId,
    otnx_acc_id: &mut AccountId
) -> Result<bool>
Expand description

Checks whether the transaction is ingoing

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.