Skip to main content
Version: Next

Function: isTypeEnum()

isTypeEnum(type, enums): boolean

Defined in: src/utils/calldata/cairo.ts:74

Checks if a given type is an enum.

Parameters

type

string

The type to check.

enums

AbiEnums

The enumeration to search in.

Returns

boolean

  • True if the type exists in the enumeration, otherwise false.