Type Definition concordium_std::CallContractResult
source · pub type CallContractResult<A> = Result<(bool, Option<A>), CallContractError<A>>;
Expand description
A wrapper around Result
that fixes the error variant to
CallContractError
, and the result to (bool, Option<A>)
.
If the result is Ok
then the boolean indicates whether the state was
modified or not, and the second item is the actual return value, which is
present (i.e., Some
) if and only if a V1
contract was invoked.