pub fn ensure_success<Halt, Error>(
result: ExecutionResult<Halt>,
) -> Result<Bytes, Error>where
Error: FromEvmHalt<Halt> + FromEthApiError,
Available on crate feature
rpc
only.Expand description
Converts the evm [ExecutionResult
] into a result where Ok
variant is the output bytes if it
is [ExecutionResult::Success
].