Skip to main content

SafeCall

Trait SafeCall 

Source
pub trait SafeCall {
    // Required methods
    fn to(&self) -> Address;
    fn value(&self) -> U256;
    fn data(&self) -> Bytes;
    fn operation(&self) -> Operation;
}
Expand description

Trait for types that can be converted to a Safe call

Required Methods§

Source

fn to(&self) -> Address

Returns the target address

Source

fn value(&self) -> U256

Returns the value to send (in wei)

Source

fn data(&self) -> Bytes

Returns the calldata

Source

fn operation(&self) -> Operation

Returns the operation type (Call or DelegateCall)

Implementors§