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

fix: blockHeight, absoluteSlot and blockTime should actually be withi… #377

Merged
merged 1 commit into from
Feb 13, 2024

Conversation

matiwinnetou
Copy link
Collaborator

…n type: long

transactionContent.setBlockHeight(txInfo.getBlockHeight());
transactionContent.setBlockTime(txInfo.getTxTimestamp());
transactionContent.setSlot(txInfo.getAbsoluteSlot());
if (txInfo.getBlockHeight() != null) {
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can we make assumption that any of these value will never be null? I find my own defensive programming here a bit clunky.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@matiwinnetou Thanks for the PR.

These should not be null unless there is a defect on the provider's side. But I think we can keep this null check.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ok, feel free to merge when you think this is fine and right time for it.

Copy link
Collaborator

@edridudi edridudi left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Will Change data types in Koios Java Client as well for the next version:
cardano-community/koios-java-client#161

@satran004 satran004 merged commit 8c94e69 into bloxbean:master Feb 13, 2024
4 checks passed
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.

3 participants