Skip to content

fix: rpc endpoints eth_getTransactionByBlockHashAndIndex & eth_getTransactionByBlockNumberAndIndex#278

Merged
fmoletta merged 6 commits into
mainfrom
fix-get-transaction-by-block-hash-and-index
Aug 16, 2024
Merged

fix: rpc endpoints eth_getTransactionByBlockHashAndIndex & eth_getTransactionByBlockNumberAndIndex#278
fmoletta merged 6 commits into
mainfrom
fix-get-transaction-by-block-hash-and-index

Conversation

@fmoletta

@fmoletta fmoletta commented Aug 15, 2024

Copy link
Copy Markdown
Contributor

Motivation
Make hive tests for eth_getTransactionByBlockHashAndIndex & eth_getTransactionByBlockNumberAndIndex pass

Description

  • Fix parsing of transaction index in the aforementioned rpc requests
  • Remove placeholder used for chain id when serializing legacy transactions and derive it from the signature instead
  • Serialize TxKind::Create as null instead of "" as this is the format that hive expects
  • Add a RpcTransaction struct that includes the extra fields expected by hive in the aforementioned rpc endpoints

Closes #274 & Closes #279

@fmoletta fmoletta changed the title fix: request parsing and output of rpc endpoints eth_getTransactionByBlockHashAndIndex & eth_getTransactionByBlockNumberAndIndex fix: rpc endpoints eth_getTransactionByBlockHashAndIndex & eth_getTransactionByBlockNumberAndIndex Aug 15, 2024
@fmoletta fmoletta marked this pull request as ready for review August 15, 2024 22:01
@fmoletta fmoletta requested a review from a team as a code owner August 15, 2024 22:01
@fmoletta fmoletta added this pull request to the merge queue Aug 16, 2024
Merged via the queue into main with commit fe762b9 Aug 16, 2024
@fmoletta fmoletta deleted the fix-get-transaction-by-block-hash-and-index branch August 16, 2024 13:23
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.

Hive Testing: eth_getTransactionByBlockNumberAndIndex Hive Testing: eth_getTransactionByBlockHashAndIndex

2 participants