mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-04-26 18:07:58 +00:00
07e55006ad
Fixup for https://github.com/paritytech/polkadot-sdk/pull/2587 to make the `core-fellowship` crate work with swapped members. Adds a `MemberSwappedHandler` to the `ranked-collective` pallet that are implemented by `core-fellowship+salary`. There is are exhaustive tests [here](https://github.com/paritytech/polkadot-sdk/blob/72aa7ac17a0e5b16faab5d2992aa2db2e01b05d0/substrate/frame/core-fellowship/src/tests/integration.rs#L338) and [here](https://github.com/paritytech/polkadot-sdk/blob/ab3cdb05a5ebc1ff841f8dda67edef0ea40bbba5/substrate/frame/salary/src/tests/integration.rs#L224) to check that adding member `1` is equivalent to adding member `0` and then swapping. --------- Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io>
14 lines
479 B
Plaintext
14 lines
479 B
Plaintext
title: "Adapt core-fellowship and salary pallets for swapped members"
|
|
|
|
doc:
|
|
- audience: Runtime Dev
|
|
description: |
|
|
The ranked-collective pallet got the ability to swap members but the core-fellowship and
|
|
salary pallets would not be notified of this change. This MR adds `MemberSwappedHandler` to
|
|
the collective that is implemented by both pallets.
|
|
|
|
crates:
|
|
- name: "pallet-ranked-collective"
|
|
- name: "pallet-core-fellowship"
|
|
- name: "pallet-salary"
|