Trait InputsTr

Source
pub trait InputsTr {
    // Required methods
    fn target_address(&self) -> Address;
    fn bytecode_address(&self) -> Option<&Address>;
    fn caller_address(&self) -> Address;
    fn input(&self) -> &CallInput;
    fn call_value(&self) -> U256;
}
Expand description

Trait for fetching inputs of the call.

Required Methods§

Source

fn target_address(&self) -> Address

Returns target address of the call.

Source

fn bytecode_address(&self) -> Option<&Address>

Returns bytecode address of the call. For DELEGATECALL this address will be different from target address. And if initcode is called this address will be None.

Source

fn caller_address(&self) -> Address

Returns caller address of the call.

Source

fn input(&self) -> &CallInput

Returns input of the call.

Source

fn call_value(&self) -> U256

Returns call value of the call.

Implementors§