Class ContractInstantiateLangError<ContractApi>

Represents an error that occurred during the instantiation of a smart contract due to a language-specific error. This class extends ContractInstantiateError and includes a LangError property.

Ref: https://use.ink/faq/migrating-from-ink-3-to-4#:~:text=Add support for,equivalent LangError.

Type Parameters

Hierarchy (view full)

Constructors

Properties

cause?: unknown

Decoded ReturnFlags from contract call result.

langError: ContractApi["types"]["LangError"]

The language-specific error that occurred during the instantiation.

message: string
name: string = 'ContractInstantiateLangError'
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