mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-06-14 19:11:04 +00:00
Amend staking docs to account for state of controller deprecation (#2451)
Amends some staking pallet docs, and deprecation comment, to adjust to the latest controller deprecation state. Note, do we need the `README.md` file, which is a duplicate of the pallet docs? Docs would be easier to maintain, and less ambiguity for devs to refer to, if we had one source of truth in the generated pallet docs.
This commit is contained in:
@@ -359,7 +359,7 @@ impl<T: Config> Pallet<T> {
|
||||
#[allow(deprecated)]
|
||||
RewardDestination::Controller => Self::bonded(stash)
|
||||
.map(|controller| {
|
||||
defensive!("Paying out controller as reward destination which is deprecated and should be migrated");
|
||||
defensive!("Paying out controller as reward destination which is deprecated and should be migrated.");
|
||||
// This should never happen once payees with a `Controller` variant have been migrated.
|
||||
// But if it does, just pay the controller account.
|
||||
T::Currency::deposit_creating(&controller, amount)
|
||||
|
||||
Reference in New Issue
Block a user