Type Alias concordium_std::ReadOnlyCallContractResult
source · 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§
Ok(Option<A>)
Contains the success value
Err(CallContractError<A>)
Contains the error value