Class ContractInstantiateError<ContractApi>

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

Type Parameters

Hierarchy (view full)

Constructors

Properties

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

The raw result of the contract instantiation.

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