-
Notifications
You must be signed in to change notification settings - Fork 722
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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: Liam Aharon <[email protected]> Co-authored-by: Bastian Köcher <[email protected]>
- Loading branch information
1 parent
84d6437
commit 32deb60
Showing
2 changed files
with
15 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
# 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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters