( type: string, )
| 424 | type GetArrayComponentsErrorType = ErrorType |
| 425 | |
| 426 | export function getArrayComponents( |
| 427 | type: string, |
| 428 | ): [length: number | null, innerType: string] | undefined { |
| 429 | const matches = type.match(/^(.*)\[(\d+)?\]$/) |
| 430 | return matches |
| 431 | ? // Return `null` if the array is dynamic. |
| 432 | [matches[2] ? Number(matches[2]) : null, matches[1]] |
| 433 | : undefined |
| 434 | } |
| 435 | |
| 436 | function isDynamicType(param: AbiParameter): boolean { |
| 437 | const { type } = param |
no outgoing calls
no test coverage detected