How to handle anonymous events in a subgraph
- INDEXERS
How can I do that? How should I make my manifest in order to handle anonymous events?
Answers1
You can initialize your subgraph with the ERC-20 contract you want to map, then modify your handleTransferEvent function to check the current block number before continuing. You can get the block number by calling event.block.number
.