Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Fix parseLog signature when receiving read-only array for topics (#4029
…, #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
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.