FromRevert

Trait FromRevert 

Source
pub trait FromRevert {
    // Required method
    fn from_revert(output: Bytes) -> Self;
}
Available on crate feature rpc only.
Expand description

Helper trait to construct errors from unexpected reverts.

Required Methods§

Source

fn from_revert(output: Bytes) -> Self

Constructs an error from revert bytes.

This is only invoked when revert was unexpected (eth_call, eth_estimateGas, etc).

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§