Skip to content

Commit

Permalink
Experiment: add new extrinsic with call_index skipping a beat
Browse files Browse the repository at this point in the history
  • Loading branch information
atodorov committed Jul 17, 2024
1 parent dd08619 commit 7b2c464
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions pallets/creditcoin/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1635,5 +1635,13 @@ pub mod pallet {

Ok(())
}

#[pallet::call_index(30)]
#[pallet::weight(<T as Config>::WeightInfo::set_gate_faucet())]
pub fn set_gate_faucet_experimental(origin: OriginFor<T>, address: T::AccountId) -> DispatchResult {
ensure_root(origin)?;
GATEFaucetAccount::<T>::put(address);
Ok(())
}
}
}

0 comments on commit 7b2c464

Please sign in to comment.