Use correct default for JSON ABI arrays.
This commit is contained in:
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
|
||||
|
Loading…
Reference in New Issue
Block a user