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

Implement arbitrary for TransactionReceipt #449

Merged
merged 5 commits into from
Apr 4, 2024

Conversation

tcoratger
Copy link
Contributor

Motivation

For fuzzing and testing purposes, we often need the implementation of arbitrary. This is the case to generate random tests for the RPC type TransactionReceipt.

Solution

  • In this PR, arbitrary is implemented for TransactionReceipt type.
  • Unit tests are added to check the proper implementation.

PR Checklist

  • Added Tests
  • Added Documentation
  • Breaking changes

Copy link
Member

@mattsse mattsse left a comment

Choose a reason for hiding this comment

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

does not hurt

Copy link
Member

@DaniPopes DaniPopes left a comment

Choose a reason for hiding this comment

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

Thanks!

@DaniPopes DaniPopes merged commit f6ce57a into alloy-rs:main Apr 4, 2024
18 checks passed
ben186 pushed a commit to ben186/alloy that referenced this pull request Jul 27, 2024
* Implement arbitrary for TransactionReceipt

* fmt

* Some fixes

* derive impl when possible
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