pub type ReadOnlyCallContractResult<A> = Result<Option<A>, CallContractError<A>>;
Expand description

A wrapper around Result that fixes the error variant to CallContractError, and the result to Option<A> If the result is Ok then the value is None if a V0 contract was invoked, and a return value returned by a V1 contract otherwise.

Aliased Type§

enum ReadOnlyCallContractResult<A> {
    Ok(Option<A>),
    Err(CallContractError<A>),
}

Variants§

§1.0.0

Ok(Option<A>)

Contains the success value

§1.0.0

Err(CallContractError<A>)

Contains the error value