diff --git a/.changeset/dull-teachers-explode.md b/.changeset/dull-teachers-explode.md new file mode 100644 index 0000000..39f5d3f --- /dev/null +++ b/.changeset/dull-teachers-explode.md @@ -0,0 +1,5 @@ +--- +"@apibara/indexer": patch +--- + +Fix bug in lookupEventFromSelector diff --git a/packages/indexer/src/starknet/parser.ts b/packages/indexer/src/starknet/parser.ts index e869f97..d8970bb 100644 --- a/packages/indexer/src/starknet/parser.ts +++ b/packages/indexer/src/starknet/parser.ts @@ -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; }