forked from paritytech/polkadot-sdk
-
Notifications
You must be signed in to change notification settings - Fork 3
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 (parity…
…tech#4091) As per paritytech#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 <liam.aharon@hotmail.com> Co-authored-by: Bastian Köcher <git@kchr.de>
- Loading branch information
1 parent
5525dc7
commit 08b1d3c
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