Skip to content

Commit 20cd8a2

Browse files
committed
Fix parseLog signature when receiving read-only array for topics (#4029, #4459).
1 parent 1f6e188 commit 20cd8a2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src.ts/abi/interface.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1212,7 +1212,7 @@ export class Interface {
12121212
*
12131213
* If the matching event cannot be found, returns null.
12141214
*/
1215-
parseLog(log: { topics: Array<string>, data: string}): null | LogDescription {
1215+
parseLog(log: { topics: ReadonlyArray<string>, data: string}): null | LogDescription {
12161216
const fragment = this.getEvent(log.topics[0]);
12171217

12181218
if (!fragment || fragment.anonymous) { return null; }

0 commit comments

Comments
 (0)