Trait evm_coder::Call

source ·
pub trait Call: Sized {
    // Required method
    fn parse(
        selector: Bytes4,
        input: &mut AbiReader<'_>
    ) -> Result<Option<Self>>;
}
Expand description

Parseable EVM call, this trait should be implemented with solidity_interface macro

Required Methods§

source

fn parse(selector: Bytes4, input: &mut AbiReader<'_>) -> Result<Option<Self>>

Parse call buffer into typed call enum

Errors

One of call arguments has bad encoding, or value is invalid for the target type

Implementors§