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

Chore:Resolved java Util NoSuchElementException #7730

Merged
merged 3 commits into from
Oct 10, 2024

Conversation

pr9t
Copy link
Contributor

@pr9t pr9t commented Oct 4, 2024

PR description

Resolved java.util.NoSuchElementException: No value present, processing method: eth_getBlockReceipts.

Fixed Issue(s)

fixes #7635

Thanks for sending a pull request! Have you done the following?

  • Checked out our contribution guidelines?
  • Considered documentation and added the doc-change-required label to this PR if updates are required.
  • Considered the changelog and included an update if required.
  • For database changes (e.g. KeyValueSegmentIdentifier) considered compatibility and performed forwards and backwards compatibility tests

Locally, you can run these tests to catch failures early:

  • unit tests: ./gradlew build
  • acceptance tests: ./gradlew acceptanceTest
  • integration tests: ./gradlew integrationTest
  • reference tests: ./gradlew ethereum:referenceTests:referenceTests

Signed-off-by: Preeti <35308865+pr9t@users.noreply.github.com>
.collect(Collectors.toList()))
.map(this::txReceipt)
.flatMap(Optional::stream)
.collect(Collectors.toList()))
Copy link
Contributor

Choose a reason for hiding this comment

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

can you add a test for the issue that this change is solving?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Hi Macfarla, I actually don't know how to create tests. I am new to Java and currently learning. Can you please guide me?

Copy link
Contributor

Choose a reason for hiding this comment

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

Have a look at EthGetBlockReceiptsTest - however on reflection I think it would need a fair amount of refactoring to add a test for this so I'm happy to merge as is.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Hi @macfarla,

I have run the EthGetBlockReceiptsTest, and it is passing. If you want me to run another test, please let me know the details.

Signed-off-by: Sally MacFarlane <macfarla.github@gmail.com>
@macfarla macfarla enabled auto-merge (squash) October 10, 2024 22:53
@macfarla macfarla merged commit e723b62 into hyperledger:main Oct 10, 2024
43 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.

java.util.NoSuchElementException: No value present, processing method: eth_getBlockReceipts
2 participants