Function: getDependencies()
getDependencies(
types,type,dependencies?,contains?,revision?):string[]
Defined in: src/utils/typedData.ts:163
Get the dependencies of a struct type. If a struct has the same dependency multiple times, it's only included once in the resulting array.
Parameters
types
Record<string, StarknetType[]>
The types object containing all defined types.
type
string
The name of the type to get dependencies for.
dependencies?
string[] = []
The array to store dependencies.
contains?
string = ''
The type contained within the struct.
revision?
TypedDataRevision = Revision.LEGACY
The revision of the TypedData.
Returns
string[]
The array of dependencies.