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§
Sourcefn get_tx_origin(&self, snapshot_id: usize) -> Result<DynSolValue>
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