From 6de86a5cdaaf0cd3428aa0d3d61b5f7094beee0d Mon Sep 17 00:00:00 2001 From: Richard Moore Date: Mon, 14 Aug 2023 20:05:38 -0400 Subject: [PATCH] Fixed VSCode lint vs tsc discrepency (#4153, #4156, #4158, #4159). --- src.ts/abi/interface.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src.ts/abi/interface.ts b/src.ts/abi/interface.ts index e453f6ad51..7f9c636652 100644 --- a/src.ts/abi/interface.ts +++ b/src.ts/abi/interface.ts @@ -1154,7 +1154,7 @@ export class Interface { const keys: Array = [ ]; 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); @@ -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; } }