From 7b2c464d519e3689cadc5525b1f86e6e655319a9 Mon Sep 17 00:00:00 2001 From: Alex Todorov Date: Wed, 17 Jul 2024 15:45:17 +0300 Subject: [PATCH] Experiment: add new extrinsic with call_index skipping a beat --- pallets/creditcoin/src/lib.rs | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/pallets/creditcoin/src/lib.rs b/pallets/creditcoin/src/lib.rs index c121e72fff..e0c2bc4ec5 100644 --- a/pallets/creditcoin/src/lib.rs +++ b/pallets/creditcoin/src/lib.rs @@ -1635,5 +1635,13 @@ pub mod pallet { Ok(()) } + + #[pallet::call_index(30)] + #[pallet::weight(::WeightInfo::set_gate_faucet())] + pub fn set_gate_faucet_experimental(origin: OriginFor, address: T::AccountId) -> DispatchResult { + ensure_root(origin)?; + GATEFaucetAccount::::put(address); + Ok(()) + } } }