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

"Hydrate" the transactions returned by eth_getBlockByHash #982

Draft
wants to merge 7 commits into
base: master
Choose a base branch
from

Conversation

carver
Copy link
Collaborator

@carver carver commented Oct 11, 2023

What was wrong?

Fix #886

How was it fixed?

Aggregate and convert information into the transaction representation. I didn't do a From implementation, because the jsonrpc representation of a transaction includes block-level information, so we need to compile information from the block and the transaction together first, before converting it into a reth-rpc style Transaction.

To-Do

  • Clean up commit history

The type conversion functions will be reused in several places, and
don't belong co-located with the header types.
We should be consistent across all transaction types with the name for
this variable. I just picked one, based on the RPC name.
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

1 participant