Trait evm_coder::Call

source ·
pub trait Call: Sized {
    // Required method
    fn parse(selector: Bytes4, input: &[u8]) -> Result<Option<Self>>;

    // Provided method
    fn parse_full(input: &[u8]) -> 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: &[u8]) -> 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

Provided Methods§

source

fn parse_full(input: &[u8]) -> Result<Option<Self>>

Implementors§