Skip to main content

decode_tx_error

Function decode_tx_error 

Source
pub fn decode_tx_error(
    code: u32,
    codespace: &str,
    raw_log: &str,
) -> Option<QoreTxError>
Expand description

Maps an ABCI (code, codespace, raw_log) triple to a QoreTxError.

A zero code returns None (success). The codespace selects the code table: the empty / "sdk" codespace uses the root SDK table; a module codespace uses its per-module table, with a generic fallback when the specific code is unmapped.