Fix emitted error for ABI code array count mismatch (#1004).
This commit is contained in:
parent
9640e864a6
commit
b0c082d728
@ -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); }
|
||||||
|
Loading…
Reference in New Issue
Block a user