mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-04-26 04:07:57 +00:00
Removes pallet::call_index from dev_mode example (#14492)
* Removes call_index * Adds UI test and updates doc * Update frame/examples/dev-mode/src/lib.rs Co-authored-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io> * Update frame/examples/dev-mode/src/lib.rs Co-authored-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io> --------- Co-authored-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io>
This commit is contained in:
@@ -60,8 +60,8 @@ pub mod pallet {
|
||||
|
||||
#[pallet::call]
|
||||
impl<T: Config> Pallet<T> {
|
||||
#[pallet::call_index(0)]
|
||||
/// No need to define a `weight` attribute here because of `dev_mode`.
|
||||
// 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)?;
|
||||
|
||||
@@ -78,8 +78,8 @@ pub mod pallet {
|
||||
Ok(())
|
||||
}
|
||||
|
||||
#[pallet::call_index(1)]
|
||||
/// No need to define a `weight` attribute here because of `dev_mode`.
|
||||
// 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>,
|
||||
#[pallet::compact] new_value: T::Balance,
|
||||
|
||||
Reference in New Issue
Block a user