Skip to main content

Receipt

Trait Receipt 

Source
pub trait Receipt {
    // Required methods
    fn caller(&self) -> &Address;
    fn callee(&self) -> &Address;
    fn gas_used(&self) -> u64;
    fn events(&self) -> Vec<&Event>;
    fn outcome(&self) -> TransactionOutcome;
    fn output(&self) -> &[u8] ;

    // Provided method
    fn reverted(&self) -> bool { ... }
}

Required Methods§

Source

fn caller(&self) -> &Address

Source

fn callee(&self) -> &Address

Source

fn gas_used(&self) -> u64

Returns the total gas used during the execution of the transaction.

Source

fn events(&self) -> Vec<&Event>

Returns the events emitted during the transaction.

Source

fn outcome(&self) -> TransactionOutcome

Returns the outcome of this transaction.

Source

fn output(&self) -> &[u8]

Returns the output of the transaction.

Provided Methods§

Source

fn reverted(&self) -> bool

Returns whether the transaction that produced this receipt was reverted.

Implementors§