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

fix(provider): uncle methods for block hash #587

Merged
merged 2 commits into from
Apr 19, 2024

Conversation

yash-atreya
Copy link
Member

Motivation

get_uncle and get_uncle_count failed when BlockId::Hash was passed as the tag as the RpcBlockHash was being passed to the params directly instead of only the actual block_hash.

Solution

Pass actual block_hash and not the type.
Also, changed idx: U64 -> u64.

PR Checklist

  • Added Tests
  • Added Documentation
  • Breaking changes

Co-authored-by: evalir <hi@enriqueortiz.dev>
@mattsse mattsse merged commit 31846e7 into alloy-rs:main Apr 19, 2024
18 checks passed
ben186 pushed a commit to ben186/alloy that referenced this pull request Jul 27, 2024
* fix(provider): uncle methods for block hash

* doc nits

Co-authored-by: evalir <hi@enriqueortiz.dev>

---------

Co-authored-by: evalir <hi@enriqueortiz.dev>
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