lambdaclass / stark_compass_explorer

Stark Compass: the only open source explorer
https://starkcompass.com
Apache License 2.0
68 stars 23 forks source link

fix events call with continuation token #394

Closed apoorvsadana closed 10 months ago

apoorvsadana commented 10 months ago

When fetching events over the RPC, the loop should halt when there’s no continuation token in the response. However, we noticed that another call is made to the RPC with continuation_token as last_page_reached. This call fails and after that the loop halts.

So we moved that part inside else. Not sure if this is the pragmatic way but it fixes the problem.