mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-04-29 06:47:57 +00:00
Use explicit call indices (#12891)
* frame-system: explicit call index 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> * pallet-template: explicit call index Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io> * DNM: Temporarily require call_index Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io> * Revert "DNM: Temporarily require call_index" This reverts commit c4934e312e12af72ca05a8029d7da753a9c99346. Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io>
This commit is contained in:
committed by
GitHub
parent
6e0453a298
commit
31f5119ecd
@@ -575,6 +575,7 @@ pub mod pallet {
|
||||
#[pallet::call]
|
||||
impl<T: Config> Pallet<T> {
|
||||
/// Remove a page which has no more messages remaining to be processed or is stale.
|
||||
#[pallet::call_index(0)]
|
||||
#[pallet::weight(T::WeightInfo::reap_page())]
|
||||
pub fn reap_page(
|
||||
origin: OriginFor<T>,
|
||||
@@ -595,6 +596,7 @@ pub mod pallet {
|
||||
/// of the message.
|
||||
///
|
||||
/// Benchmark complexity considerations: O(index + weight_limit).
|
||||
#[pallet::call_index(1)]
|
||||
#[pallet::weight(
|
||||
T::WeightInfo::execute_overweight_page_updated().max(
|
||||
T::WeightInfo::execute_overweight_page_removed()).saturating_add(*weight_limit)
|
||||
|
||||
Reference in New Issue
Block a user