Skip to content

Commit

Permalink
indexer: fix bug in lookupEventFromSelector
Browse files Browse the repository at this point in the history
  • Loading branch information
fracek committed Jan 17, 2024
1 parent 39fe427 commit 800e3f3
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .changeset/dull-teachers-explode.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@apibara/indexer": patch
---

Fix bug in lookupEventFromSelector
2 changes: 1 addition & 1 deletion packages/indexer/src/starknet/parser.ts
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ export class Contract {
this.selectorToEvent = {};
for (const event of this.abi) {
if (event.type !== "event") {
return;
continue;
}
this.selectorToEvent[getSelector(event.name)] = event.name;
}
Expand Down

0 comments on commit 800e3f3

Please sign in to comment.