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(rpc-types/providers): Use U64 in block-number related types, make storage keys U256 #22

Merged
merged 3 commits into from
Nov 7, 2023

Conversation

Evalir
Copy link
Contributor

@Evalir Evalir commented Nov 7, 2023

Motivation

Closes #17.

We currently use either u64, U64, and U256 depending on the type for block number. We should consistently use one of these. Through the maintainers chat, we decided to use U64.

Access lists also were agreed to use U256.

Solution

Changes block number related types to use U64. This does not yet change types with a block number embedded in them like Header, and alloy's BlockNumber alias needs to be changed separately. Should we also move ahead with this on this PR?

Note that this deviates alloy's rpc types from reth.

PR Checklist

  • Added Tests
  • Added Documentation
  • Breaking changes

@Evalir Evalir requested a review from onbjerg November 7, 2023 15:54
@Evalir Evalir merged commit 641d9ab into main Nov 7, 2023
17 checks passed
@Evalir Evalir deleted the evalir/standardize-block-number branch November 7, 2023 19:52
@onbjerg onbjerg mentioned this pull request Nov 21, 2023
3 tasks
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.

[Bug] Block number bits inconsistent
3 participants