From b0c082d728dc66b0f2a5ec315da44d6295716284 Mon Sep 17 00:00:00 2001 From: Richard Moore Date: Thu, 20 Aug 2020 15:33:16 -0400 Subject: [PATCH] Fix emitted error for ABI code array count mismatch (#1004). --- packages/abi/src.ts/coders/array.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); }