Skip to content

Commit

Permalink
Remove branch, causing inline arrays to have tuple type as ABI encodi…
Browse files Browse the repository at this point in the history
…ng type. (#223)
  • Loading branch information
blitz-1306 authored Oct 5, 2023
1 parent 68aa8ca commit f467859
Showing 1 changed file with 0 additions and 10 deletions.
10 changes: 0 additions & 10 deletions src/types/infer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2418,16 +2418,6 @@ export class InferType {
if (type instanceof ArrayType) {
const elT = this.toABIEncodedType(type.elementT, encoderVersion);

if (type.size !== undefined) {
const elements = [];

for (let i = 0; i < type.size; i++) {
elements.push(elT);
}

return new TupleType(elements);
}

return new ArrayType(elT, type.size);
}

Expand Down

0 comments on commit f467859

Please sign in to comment.