mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-06-24 00:51:07 +00:00
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:
committed by
GitHub
parent
b9a55985bd
commit
d387338fb0
@@ -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>,
|
||||
|
||||
Reference in New Issue
Block a user