Skip to content

Commit

Permalink
Remove getters from pallet-membership (paritytech#4840)
Browse files Browse the repository at this point in the history
As per paritytech#3326 , removes pallet::getter macro usage from
pallet-membership. The syntax StorageItem::<T, I>::get() should be used
instead. Also converts some syntax to turbo and reimplements the removed
getters, following paritytech#223

cc @muraca

---------

Co-authored-by: Dónal Murray <donalm@seadanda.dev>
Co-authored-by: Kian Paimani <5588131+kianenigma@users.noreply.github.com>
  • Loading branch information
3 people authored and TarekkMA committed Aug 2, 2024
1 parent cae0afb commit be6adc3
Show file tree
Hide file tree
Showing 2 changed files with 118 additions and 72 deletions.
14 changes: 14 additions & 0 deletions prdoc/pr_4840.prdoc
Original file line number Diff line number Diff line change
@@ -0,0 +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: Removed `pallet::getter` usage from pallet-membership

doc:
- audience: Runtime Dev
description: |
This PR removed the `pallet::getter`s from `pallet-membership`.
The syntax `StorageItem::<T, I>::get()` should be used instead.

crates:
- name: pallet-membership
bump: minor
Loading

0 comments on commit be6adc3

Please sign in to comment.