From 20cd8a23eaf8e8a14e2b51f7f64da4cb3e32fccb Mon Sep 17 00:00:00 2001 From: Richard Moore Date: Wed, 31 Jan 2024 00:00:19 -0500 Subject: [PATCH] Fix parseLog signature when receiving read-only array for topics (#4029, #4459). --- src.ts/abi/interface.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src.ts/abi/interface.ts b/src.ts/abi/interface.ts index 3fb682c5e..e3e0d7bdc 100644 --- a/src.ts/abi/interface.ts +++ b/src.ts/abi/interface.ts @@ -1212,7 +1212,7 @@ export class Interface { * * If the matching event cannot be found, returns null. */ - parseLog(log: { topics: Array, data: string}): null | LogDescription { + parseLog(log: { topics: ReadonlyArray, data: string}): null | LogDescription { const fragment = this.getEvent(log.topics[0]); if (!fragment || fragment.anonymous) { return null; }