Function unwrapResultOrError

Unwraps a Weights V2 result type or errors if there is no 'ok' value.

  • Type Parameters

    • T = any

    Parameters

    • outcome: Pick<ContractCallOutcome, "result" | "output">

    Returns T