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.