diff --git a/packages/abi/src.ts/coders/array.ts b/packages/abi/src.ts/coders/array.ts index e033ad26f..0437294a5 100644 --- a/packages/abi/src.ts/coders/array.ts +++ b/packages/abi/src.ts/coders/array.ts @@ -197,7 +197,7 @@ export class ArrayCoder extends Coder { writer.writeValue(value.length); } - logger.checkArgumentCount(count, value.length, "coder array" + (this.localName? (" "+ this.localName): "")); + logger.checkArgumentCount(value.length, count, "coder array" + (this.localName? (" "+ this.localName): "")); let coders = []; for (let i = 0; i < value.length; i++) { coders.push(this.coder); }