Class ContractExecutionError<ContractApi>

Represents an error that occurred during the execution of a smart contract call. This class extends the base DedotError and includes a raw property of type ContractCallResult.

Type Parameters

Hierarchy (view full)

Constructors

Properties

cause?: unknown
message: string
name: string = 'ContractExecutionError'
raw: Awaited<ReturnType<ContractApi["types"]["ChainApi"]["call"]["contractsApi"]["call"]>>

The raw result of the contract call.

stack?: string
prepareStackTrace?: ((err: Error, stackTraces: CallSite[]) => any)

Optional override for formatting stack traces

stackTraceLimit: number

Methods

  • Create .stack property on a target object

    Parameters

    • targetObject: object
    • OptionalconstructorOpt: Function

    Returns void