Use correct default for JSON ABI arrays.

This commit is contained in:
Richard Moore 2023-01-26 13:46:51 -05:00
parent d0f087bdae
commit 9bf98a01be

@ -853,7 +853,7 @@ export class ParamType {
let arrayMatch = type.match(regexArrayType);
if (arrayMatch) {
const arrayLength = parseInt(arrayMatch[2]);
const arrayLength = parseInt(arrayMatch[2] || "-1");
const arrayChildren = ParamType.from({
type: arrayMatch[1],
components: obj.components