TxHandler

Trait TxHandler 

Source
pub trait TxHandler {
    // Required method
    fn get_tx_origin(&self, snapshot_id: usize) -> Result<DynSolValue>;
}
Expand description

Handler trait for tx global variables.

Provides access to transaction-level context like tx.origin.

Required Methods§

Source

fn get_tx_origin(&self, snapshot_id: usize) -> Result<DynSolValue>

Get the transaction origin address (tx.origin).

§Arguments
  • snapshot_id - The execution context identifier
§Returns

The origin address as a DynSolValue::Address

Implementations on Foreign Types§

Source§

impl TxHandler for Arc<SimulationDebugHandler>

Source§

fn get_tx_origin(&self, snapshot_id: usize) -> Result<DynSolValue>

Implementors§