Skip to content

getTupleValueFromStructValue

getTupleValueFromStructValue(structType, structValue): ABIValue[]

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

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

ABIStructType

The struct type definition

ABIStructValue

The struct value to convert

ABIValue[]

The equivalent tuple value