MCPcopy Create free account
hub / github.com/AztecProtocol/aztec-packages / isWrappedFieldStruct

Function isWrappedFieldStruct

yarn-project/stdlib/src/abi/utils.ts:43–50  ·  view source on GitHub ↗
(abiType: AbiType)

Source from the content-addressed store, hash-verified

41 * @param abiType - Type to check.
42 */
43export function isWrappedFieldStruct(abiType: AbiType) {
44 return (
45 abiType.kind === 'struct' &&
46 abiType.fields.length === 1 &&
47 abiType.fields[0].name === 'inner' &&
48 abiType.fields[0].type.kind === 'field'
49 );
50}
51
52/**
53 * Returns whether the ABI type is a PublicKeys struct from Aztec.nr.

Callers 3

abiTypeToTypescriptFunction · 0.90
encodeArgumentMethod · 0.85
decodeNextMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected