Skip to main content
Version: Next

Function: isTypeStruct()

isTypeStruct(type, structs): boolean

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

Checks if a given type is a struct.

Parameters

type

string

The type to check for existence.

structs

AbiStructs

The collection of structs to search in.

Returns

boolean

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