-
Notifications
You must be signed in to change notification settings - Fork 124
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
Function renamings in state
api interface + improved documentation
#448
Conversation
361b616
to
1e3d5be
Compare
state
api + added comments
state
api + added commentsstate
api interface + improved documentation
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.
Looking forward to the clearer interface ! Thanks for your effort ❤️
src/api/rpc_api/state.rs
Outdated
/// Retrieve the raw storage for the given `storage_key`. | ||
/// | ||
/// `at_block`: the state is queried at this block, set to `None` to get the state from the latest known block. | ||
fn get_opaque_storage( |
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.
Above, the _by_key
is used whenever a storage key is required as an input. If there's no by_key
, then the pallet and storage item are required. Is this convention break here intentional?
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 for this observation. Will change it.
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.
Awesome, thanks alot!
@haerdib can you check if these are the renamings you had in mind in #412
closes #412