DefiantLabs / cosmos-upgrades

a tool to search for scheduled cosmos upgrades
MIT License
4 stars 2 forks source link

patch/result key check in RPC time response #28

Closed pharr117 closed 11 months ago

pharr117 commented 11 months ago

Add result key check to RPC time requests since some chains do not return the data with result key as the top level.

The SEI chain RPC endpoint is not returning data in the expected format. Our RPC block requests expect the "result" key to be at the top level, but they seem to have flattened the Node response so that its missing the "result".

image

Add a basic check to flatten the data ourselves for other chains.