MCPcopy Create free account
hub / github.com/d1ll0n/stack-packer / getMaxUintForField

Function getMaxUintForField

src/code-gen/fields.ts:146–152  ·  view source on GitHub ↗
(field: AbiStructField)

Source from the content-addressed store, hash-verified

144}
145
146const getMaxUintForField = (field: AbiStructField) => {
147 const name = field.type.meta === 'elementary' && field.type.type === 'int'
148 ? `MaxInt${field.type.size}`
149 : `MaxUint${field.type.size}`;
150 const value = getMaxUint(field.type.size);
151 return { name, value }
152}
153
154export function processFields(
155 struct: AbiStruct,

Callers 1

processFieldsFunction · 0.85

Calls 1

getMaxUintFunction · 0.90

Tested by

no test coverage detected