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 storage item typos #834

Draft
wants to merge 2 commits into
base: devnet-ready
Choose a base branch
from
Draft

Conversation

JohnReedV
Copy link
Contributor

@JohnReedV JohnReedV commented Sep 30, 2024

Description

Related Issue(s)

Type of Change

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • Documentation update
  • Other (please describe):

Breaking Change

renames storage items

@@ -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
Copy link
Collaborator

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 ?

Copy link

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:

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
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

same

@JohnReedV JohnReedV marked this pull request as ready for review October 1, 2024 18:32
@JohnReedV JohnReedV requested a review from unconst as a code owner October 1, 2024 18:32
@JohnReedV JohnReedV marked this pull request as draft October 2, 2024 14:41
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.

3 participants