-
Notifications
You must be signed in to change notification settings - Fork 157
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 storage item typos #834
base: devnet-ready
Are you sure you want to change the base?
Conversation
@@ -780,7 +780,7 @@ pub mod pallet { | |||
pub type HotkeyEmissionTempo<T> = | |||
StorageValue<_, u64, ValueQuery, DefaultHotkeyEmissionTempo<T>>; | |||
#[pallet::storage] | |||
/// Map ( hot ) --> emission | Accumulated hotkey emission. | |||
/// Name corrected: PendingdHotkeyEmission => PendingHotkeyEmission |
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.
Do we need this comment ?
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.
It's useful for people who index the chain like me. When I search the updated name there's nothing relevant, but the old name gives results:
- https://github.com/opentensor/subtensor/issues?q=is%3Aissue+PendingHotkeyEmission+
- https://github.com/opentensor/subtensor/issues?q=is%3Aissue+PendingdHotkeyEmission+
I happened to be aware of this typo, but if I wasn't and wanted to understand why my storage calls weren't working in earlier blocks this comment in the code would make it a lot easier to discover the reason.
@@ -939,10 +949,14 @@ pub mod pallet { | |||
pub type BlocksSinceLastStep<T> = | |||
StorageMap<_, Identity, u16, u64, ValueQuery, DefaultBlocksSinceLastStep<T>>; | |||
#[pallet::storage] | |||
/// --- MAP ( netuid ) --> last_mechanism_step_block | |||
/// Name corrected: LastMechansimStepBlock => LastMechanismStepBlock |
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.
same
Description
Related Issue(s)
Type of Change
Breaking Change
renames storage items