enviodev / hyperindex

📖 Blazing-fast multi-chain indexer
https://envio.dev
66 stars 5 forks source link

Skips event when using preRegisterDynamicContracts option #286

Open chrisais9 opened 3 hours ago

chrisais9 commented 3 hours ago

Describe the bug Indexer skips events internally when using preRegisterDynamicContracts option.

(This error is intended on handler. It logs when there are no pool found when indexing event) It shouldn't happen because every Swap, Mint, Burn events. pool must be registered and it did previously.

This error doesn't show up in v2.4.4 and below.

I think this is a bug with preRegisterDynamicContracts.

To Reproduce Steps to reproduce the behavior:

  1. Clone repo shared via private TG conversation.
  2. Run Indexer using v2.5.0 and higher (or just latest version) with preRegisterDynamicContracts
  3. Watch console log

Expected behavior No error with clean console as v2.4.4 and below

Screenshots

123

Local (please complete the following information):

Hosted Service (please complete the following information):

Additional context contact with TG would be happy for furthermore infos.

moose-code commented 3 hours ago

@JonoPrest is it possible https://github.com/enviodev/hyperindex/pull/281 fixes this?

JonoPrest commented 1 hour ago

Thanks for reporting @chrisais9, looking into it 👍🏼