Skip to content

Commit

Permalink
Fix parseLog signature when receiving read-only array for topics (#4029
Browse files Browse the repository at this point in the history
…, #4459).
  • Loading branch information
ricmoo committed Jan 31, 2024
1 parent 1f6e188 commit 20cd8a2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src.ts/abi/interface.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1212,7 +1212,7 @@ export class Interface {
*
* If the matching event cannot be found, returns null.
*/
parseLog(log: { topics: Array<string>, data: string}): null | LogDescription {
parseLog(log: { topics: ReadonlyArray<string>, data: string}): null | LogDescription {
const fragment = this.getEvent(log.topics[0]);

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

0 comments on commit 20cd8a2

Please sign in to comment.