kleros / gtcr

Web client for the kleros generalized token curated list
https://curate.kleros.io
MIT License
17 stars 10 forks source link

Bug: getLogs not fetching all of the PolicyUpdate() events emitted from the PolicyRegistry contract #339

Open kemuru opened 3 months ago

kemuru commented 3 months ago

A user notified of a problem in Curate V1 that it would not let him select Curation Court nor General Court when creating a new list. I was digging a bit and looks like its using getLogs and its not working properly or at least its missing a bunch of events. technically we should have this info in the Kleros Display subgraphs, and we could consider migrating this getLogs to a subgraph query.

files affected in question:

src/pages/factory/kleros-params.js line 84 src/pages/factory-classic/kleros-params.js line 65

There are more getLogs() being used in this repo but they fall out of context for this specific issue.