-
Notifications
You must be signed in to change notification settings - Fork 237
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
feat: add missing admin_* methods #991
Conversation
Interestingly, the |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ty, this is a subscription for
and it looks like we're missing this type in the admin crate
Not your fault, fixed on main |
see also alloy/crates/rpc-client/src/call.rs Lines 202 to 208 in 1807965
"eth_subscribe" is detected as subscription by default, for others we'd need to set it after calling ".request("admin_peeEvents").set_is_subscription" |
@mattsse Does this make more sense? I'm worried that |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks!
* feat: add missing admin_* methods * fix: add 0x prefix to subscription ids * fix: u16 -> U128 * fix: remork to match other subscriptions * lint(fmt): fix formatting * fix: use alloy_pubsub when pubsub is enabled * fix: add missing type path * fix(docs): remove outdated comment * doc: nit --------- Co-authored-by: DaniPopes <57450786+DaniPopes@users.noreply.github.com>
Motivation
Adds missing
admin_*
RPC methods. Work towards completing #926.PR Checklist