Skip to content
Unverified Commit 95d98e6d authored by Michał Gil's avatar Michał Gil Committed by GitHub
Browse files

remove pallet::getter from pallet-staking (#6184)



# Description

Part of https://github.com/paritytech/polkadot-sdk/issues/3326
Removes all pallet::getter occurrences from pallet-staking and replaces
them with explicit implementations.
Adds tests to verify that retrieval of affected entities works as
expected so via storage::getter.

## Review Notes

1. Traits added to the `derive` attribute are used in tests (either
directly or indirectly).
2. The getters had to be placed in a separate impl block since the other
one is annotated with `#[pallet::call]` and that requires
`#[pallet::call_index(0)]` annotation on each function in that block. So
I thought it's better to separate them.

---------

Co-authored-by: default avatarDónal Murray <[email protected]>
Co-authored-by: default avatarGuillaume Thiolliere <[email protected]>
parent 8e3d9296
Pipeline #505440 waiting for manual action with stages
in 17 minutes and 14 seconds