Skip to content
This repository has been archived by the owner on Nov 15, 2023. It is now read-only.

Commit

Permalink
Removes call_index
Browse files Browse the repository at this point in the history
  • Loading branch information
gupnik committed Jul 3, 2023
1 parent a93858a commit b9c8f3f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions frame/examples/dev-mode/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ pub mod pallet {

#[pallet::call]
impl<T: Config> Pallet<T> {
#[pallet::call_index(0)]
/// No need to define a `call_index` attribute here because of `dev_mode`.
/// No need to define a `weight` attribute here because of `dev_mode`.
pub fn add_dummy(origin: OriginFor<T>, id: T::AccountId) -> DispatchResult {
ensure_root(origin)?;
Expand All @@ -78,7 +78,7 @@ pub mod pallet {
Ok(())
}

#[pallet::call_index(1)]
/// No need to define a `call_index` attribute here because of `dev_mode`.
/// No need to define a `weight` attribute here because of `dev_mode`.
pub fn set_bar(
origin: OriginFor<T>,
Expand Down

0 comments on commit b9c8f3f

Please sign in to comment.