pub trait AbiDecode: Sized {
    fn decode(bytes: impl AsRef<[u8]>) -> Result<Self, AbiError>;

    fn decode_hex(data: impl AsRef<str>) -> Result<Self, AbiError> { ... }
}
Expand description

Trait for ABI decoding

Required Methods§

Decodes the ABI encoded data

Provided Methods§

Decode hex encoded ABI encoded data

Expects a hex encoded string, with optional 0x prefix

Implementations on Foreign Types§

Implementors§