(field: AbiStructField)
| 120 | ) |
| 121 | |
| 122 | export const shouldCheckForOverflow = (field: AbiStructField): boolean => { |
| 123 | if (field.coderType === 'unchecked' || field.coderType === 'exact' || !(uintAllowed(field.type) || intAllowed(field.type))) return false; |
| 124 | // Check for overflow if type size is not divisible by 8 |
| 125 | return field.coderType === 'checked' || field.type.size % 8 > 0; |
| 126 | } |
| 127 | |
| 128 | export const getParameterDefinition = (field: AbiStructField) => { |
| 129 | // If field is not a uint or enum, or `exact` is true, use real type |
no test coverage detected