pub trait SolResultDecode {
type SolType: SolTypeDecode;
const SOL_NAME: &'static str = <<Self::SolType as SolTypeDecode>::AlloyType as AlloySolType>::SOL_NAME;
// Required method
fn decode(
data: &[u8],
did_revert: bool,
) -> Result<Self, SolResultDecodeError>
where Self: Sized;
}
Expand description
Solidity ABI decode return data.
Provided Associated Constants§
Required Associated Types§
Sourcetype SolType: SolTypeDecode
type SolType: SolTypeDecode
Equivalent Solidity ABI type representation.
Required Methods§
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.