Skip to content

Commit

Permalink
Fixed VSCode lint vs tsc discrepency (ethers-io#4153, ethers-io#4156, e…
Browse files Browse the repository at this point in the history
  • Loading branch information
ricmoo authored and Woodpile37 committed Jan 14, 2024
1 parent 12ef412 commit 6de86a5
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src.ts/abi/interface.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1154,7 +1154,7 @@ export class Interface {
const keys: Array<null | string> = [ ];
let nonIndexedIndex = 0, indexedIndex = 0;
fragment.inputs.forEach((param, index) => {
let value: null | Indexed = null;
let value: null | Indexed | Error = null;
if (param.indexed) {
if (resultIndexed == null) {
value = new Indexed(null);
Expand All @@ -1165,14 +1165,14 @@ export class Interface {
} else {
try {
value = resultIndexed[indexedIndex++];
} catch (error) {
} catch (error: any) {
value = error;
}
}
} else {
try {
value = resultNonIndexed[nonIndexedIndex++];
} catch (error) {
} catch (error: any) {
value = error;
}
}
Expand Down

0 comments on commit 6de86a5

Please sign in to comment.