Files
pezkuwi-subxt/prdoc/pr_3350.prdoc
T
K Gunjan 816c072abd Pallet AURA: remove pallet::getter macro and write the corresponding code (#3350)
Removed the `pallet::getter` macro call from storage type definitions
and added the corresponding implementations directly.
fixes #3330  

polkadot address: 14JzTPPUd8x8phKi8qLxHgNTnTMg6DUukCLXoWprejkaHXPz

---------

Co-authored-by: Bastian Köcher <git@kchr.de>
2024-03-18 10:27:48 +00:00

32 lines
1.2 KiB
Plaintext

# 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` from Pallet AURA
doc:
- audience: Runtime Dev
description: |
This PR removes all the declarations of macro `pallet::getter` in the Pallet AURA and replaces the use of storage getter functions authorities() & current_slot() with `StorageItem::get()` API across the crates as listed bellow.
The purpose is to discourage developers to use this macro, that is currently being removed and soon will be deprecated.
crates:
- name: pallet-aura
- name: solochain-template-runtime
- name: cumulus-pallet-aura-ext
- name: parachain-template-runtime
- name: people-westend-runtime
- name: people-rococo-runtime
- name: bridge-hub-rococo-runtime
- name: bridge-hub-westend-runtime
- name: rococo-parachain-runtime
- name: penpal-runtime
- name: glutton-westend-runtime
- name: shell-runtime
- name: seedling-runtime
- name: collectives-westend-runtime
- name: asset-hub-rococo-runtime
- name: asset-hub-westend-runtime
- name: contracts-rococo-runtime
- name: coretime-westend-runtime
- name: coretime-rococo-runtime