dominant-strategies / quai-explorer

Quai Network frontend block explorer.
https://quaiscan.io
13 stars 10 forks source link

Error handling when parsing data #51

Closed skunal8197 closed 2 years ago

skunal8197 commented 2 years ago

when parsing data on blocks and transactions, there is no error handling present so if the values are null, it breaks also cyprus one block has no position attribute so parsing is different for that

confirm with team on how to parse block data properly and if we should expect consistent block data

skunal8197 commented 2 years ago

will push to https://github.com/spruce-solutions/quai-explorer/tree/fixes-02-12

skunal8197 commented 2 years ago

Confirmed that block data can be accessed like so block?.{attribute}

Pushed to https://github.com/spruce-solutions/quai-explorer/tree/fixes-02-12