Skip to content

Conversation

@Forostovec
Copy link
Contributor

Previously BlockReceipts sent blockNrOrHash.String() to eth_getBlockReceipts, which dropped the RequireCanonical flag and could emit the invalid literal "nil" for zero values. This change passes the rpc.BlockNumberOrHash object directly so the server can honor RequireCanonical and fail clearly on invalid input. This aligns with other ethclient methods (e.g., BalanceAtHash, CodeAtHash) and remains compatible with the server, which accepts structured parameters.

@Forostovec Forostovec requested a review from fjl as a code owner December 10, 2025 10:01
@healthykim
Copy link
Contributor

We already have the same PR in #33242

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.

2 participants