agave_transaction_view/
result.rs

1
2
3
4
5
6
7
8
9
#[derive(Debug, PartialEq, Eq)]
#[repr(u8)] // repr(u8) is used to ensure that the enum is represented as a single byte in memory.
pub enum TransactionViewError {
    ParseError,
    SanitizeError,
    AddressLookupMismatch,
}

pub type Result<T> = core::result::Result<T, TransactionViewError>;