Skip to content

getStructValueFromTupleValue

getStructValueFromTupleValue(structType, tupleValue): ABIStructValue

Defined in: packages/abi/src/utils.ts:43

Converts a tuple value (array) to a struct value (object with named fields).

ABIStructType

The struct type definition

ABIValue[]

The tuple value to convert

ABIStructValue

The equivalent struct value