Fix emitted error for ABI code array count mismatch (#1004).

This commit is contained in:
Richard Moore 2020-08-20 15:33:16 -04:00
parent 9640e864a6
commit b0c082d728
No known key found for this signature in database
GPG Key ID: 665176BE8E9DC651

@ -197,7 +197,7 @@ export class ArrayCoder extends Coder {
writer.writeValue(value.length); 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 = []; let coders = [];
for (let i = 0; i < value.length; i++) { coders.push(this.coder); } for (let i = 0; i < value.length; i++) { coders.push(this.coder); }