Skip to content

Commit

Permalink
Update pr_4091.prdoc
Browse files Browse the repository at this point in the history
  • Loading branch information
PolkadotDom committed May 8, 2024
1 parent 4cf41bc commit 013f8df
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions prdoc/pr_4091.prdoc
Original file line number Diff line number Diff line change
@@ -1,13 +1,14 @@
# 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: Remove `pallet::getter` usage from authority-discovery pallet
title: Removed `pallet::getter` usage from the authority-discovery pallet

doc:
- audience: Runtime Dev
description: |
This PR removes `pallet::getter`s from `pallet-authority-discovery`.
The syntax `StorageItem::<T, I>::get()` should be used instead.
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
Expand Down

0 comments on commit 013f8df

Please sign in to comment.