Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Avoid exception in data transformation when there are no transactions #123

Merged
merged 1 commit into from
Feb 13, 2023

Conversation

csillag
Copy link
Contributor

@csillag csillag commented Feb 10, 2023

When we try load transactions where there are none, sometimes we get an exception on the console.
This one-liner change fixes that.

@csillag csillag changed the title Avoid exception data transformation when there are no transactions Avoid exception in data transformation when there are no transactions Feb 10, 2023
@lukaw3d
Copy link
Member

lukaw3d commented Feb 10, 2023

An example of this issue: 1922304 block has 0 transactions

https://index-staging.oasislabs.com/v1/emerald/transactions?block=1922304 returns {transactions: null}

@csillag csillag force-pushed the csillag/avoid-exception-in-data-transformation branch from 8cf415f to 5f42b2e Compare February 13, 2023 16:05
@csillag csillag force-pushed the csillag/avoid-exception-in-data-transformation branch from 5f42b2e to 8bfc911 Compare February 13, 2023 16:08
@csillag csillag merged commit f9a03da into master Feb 13, 2023
@csillag csillag deleted the csillag/avoid-exception-in-data-transformation branch February 13, 2023 16:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants