Skip to content

Commit

Permalink
Fix emitted error for ABI code array count mismatch (#1004).
Browse files Browse the repository at this point in the history
  • Loading branch information
ricmoo committed Aug 20, 2020
1 parent 9640e86 commit b0c082d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/abi/src.ts/coders/array.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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); }
Expand Down

0 comments on commit b0c082d

Please sign in to comment.