Skip to content

Commit

Permalink
Fixed VSCode lint vs tsc discrepency (#4153, #4156, #4158, #4159).
Browse files Browse the repository at this point in the history
  • Loading branch information
ricmoo committed Aug 15, 2023
1 parent 4eb84da commit 203dfc3
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 203dfc3

Please sign in to comment.