-
Notifications
You must be signed in to change notification settings - Fork 256
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
[Feature] Change all Option<BlockId>
to BlockId
on methods in the Provider
#514
Comments
I'll work on this. |
Hey, update on this. The direction is going to be the removal of all Option params and making them required in provider methods. This ensures consistency with the JSON RPC specification. |
Thanks! I'll update the description and title |
BlockId
for get_code_at
and get_uncle
on the Provider
Provider
Provider
Option<BlockId>
to BlockId
on methods in the Provider
Can we close this issue? The PR was merged. |
Component
provider, pubsub
Describe the feature you would like
get_code_at
andget_uncle
on theProvider
currently require the user to define thetag
whereas others allow for definingtag
asNone
, whereNone
means defaulting toLatest
.alloy/crates/provider/src/provider.rs
Lines 768 to 771 in 7629f79
alloy/crates/provider/src/provider.rs
Lines 826 to 836 in 7629f79
Whereas other methods allow for defining
tag
asNone
,alloy/crates/provider/src/provider.rs
Lines 627 to 639 in 7629f79
Where automatically defaulting means
Latest
:alloy/crates/rpc-types/src/eth/block.rs
Lines 719 to 723 in 987b393
Based on feedback from @mattsse on the PR of @EmperorOrokuSaki it was decided to instead of making
get_code_at
andget_uncle
haveOption<BlockId>
to change all other methods to useBlockId
(not optional).Additional context
No response
The text was updated successfully, but these errors were encountered: