Skip to content
Snippets Groups Projects
Unverified Commit 32deb605 authored by polka.dom's avatar polka.dom Committed by GitHub
Browse files

Remove `pallet::getter` usage from authority-discovery pallet (#4091)


As per #3326, removes pallet::getter usage from the pallet
authority-discovery. The syntax `StorageItem::<T, I>::get()` should be
used instead.

cc @muraca

---------

Co-authored-by: default avatarLiam Aharon <liam.aharon@hotmail.com>
Co-authored-by: default avatarBastian Köcher <git@kchr.de>
parent 84d64374
Branches
No related merge requests found
Pipeline #473882 waiting for manual action with stages
in 1 hour, 14 minutes, and 24 seconds
# Schema: Polkadot SDK PRDoc Schema (prdoc) v1.0.0
# See doc at https://raw.githubusercontent.com/paritytech/polkadot-sdk/master/prdoc/schema_user.json
title: Removed `pallet::getter` usage from the authority-discovery pallet
doc:
- audience: Runtime Dev
description: |
This PR removed `pallet::getter`s from `pallet-authority-discovery`s storage items.
When accessed inside the pallet, use the syntax `StorageItem::<T, I>::get()`.
When accessed outside the pallet, use the getters current_authorities() and next_authorities() instead.
crates:
- name: pallet-authority-discovery
bump: major
......@@ -48,13 +48,11 @@ pub mod pallet {
}
#[pallet::storage]
#[pallet::getter(fn keys)]
/// Keys of the current authority set.
pub(super) type Keys<T: Config> =
StorageValue<_, WeakBoundedVec<AuthorityId, T::MaxAuthorities>, ValueQuery>;
#[pallet::storage]
#[pallet::getter(fn next_keys)]
/// Keys of the next authority set.
pub(super) type NextKeys<T: Config> =
StorageValue<_, WeakBoundedVec<AuthorityId, T::MaxAuthorities>, ValueQuery>;
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment