Use explicit call indices (#6449)

* cargo update -p sp-io

Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io>

* Use explicit call indices

Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io>

Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io>
This commit is contained in:
Oliver Tale-Yazdi
2022-12-19 23:13:34 +01:00
committed by GitHub
parent b9a55985bd
commit d387338fb0
21 changed files with 309 additions and 180 deletions
@@ -66,6 +66,7 @@ pub mod pallet {
/// Add new validators to the set.
///
/// The new validators will be active from current session + 2.
#[pallet::call_index(0)]
#[pallet::weight(100_000)]
pub fn register_validators(
origin: OriginFor<T>,
@@ -82,6 +83,7 @@ pub mod pallet {
/// Remove validators from the set.
///
/// The removed validators will be deactivated from current session + 2.
#[pallet::call_index(1)]
#[pallet::weight(100_000)]
pub fn deregister_validators(
origin: OriginFor<T>,