From 76ac8203dfc765eb1c6a5c9ca39b6317edd737e2 Mon Sep 17 00:00:00 2001 From: Luiz Carvalho Date: Tue, 7 Jan 2025 20:26:00 -0300 Subject: [PATCH] Update lib.rs --- pallets/governance/src/lib.rs | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/pallets/governance/src/lib.rs b/pallets/governance/src/lib.rs index 65a6858..ce3225a 100644 --- a/pallets/governance/src/lib.rs +++ b/pallets/governance/src/lib.rs @@ -162,7 +162,7 @@ pub mod pallet { #[pallet::call] impl Pallet { #[pallet::call_index(0)] - #[pallet::weight((::WeightInfo::add_curator(), DispatchClass::Normal, Pays::Yes))] + #[pallet::weight((::WeightInfo::add_curator(), DispatchClass::Normal, Pays::No))] pub fn add_curator(origin: OriginFor, key: AccountIdOf) -> DispatchResult { if ensure_signed_or_root(origin.clone())?.is_some() { roles::ensure_root_curator::(origin)?; @@ -172,7 +172,7 @@ pub mod pallet { } #[pallet::call_index(1)] - #[pallet::weight((::WeightInfo::remove_curator(), DispatchClass::Normal, Pays::Yes))] + #[pallet::weight((::WeightInfo::remove_curator(), DispatchClass::Normal, Pays::No))] pub fn remove_curator(origin: OriginFor, key: AccountIdOf) -> DispatchResult { if ensure_signed_or_root(origin.clone())?.is_some() { roles::ensure_root_curator::(origin)?; @@ -182,49 +182,49 @@ pub mod pallet { } #[pallet::call_index(2)] - #[pallet::weight((::WeightInfo::add_allocator(), DispatchClass::Normal, Pays::Yes))] + #[pallet::weight((::WeightInfo::add_allocator(), DispatchClass::Normal, Pays::No))] pub fn add_allocator(origin: OriginFor, key: AccountIdOf) -> DispatchResult { ensure_root(origin)?; roles::manage_role::>(key, true, Error::::AlreadyAllocator) } #[pallet::call_index(3)] - #[pallet::weight((::WeightInfo::remove_allocator(), DispatchClass::Normal, Pays::Yes))] + #[pallet::weight((::WeightInfo::remove_allocator(), DispatchClass::Normal, Pays::No))] pub fn remove_allocator(origin: OriginFor, key: AccountIdOf) -> DispatchResult { ensure_root(origin)?; roles::manage_role::>(key, false, Error::::NotAllocator) } #[pallet::call_index(4)] - #[pallet::weight((::WeightInfo::add_to_whitelist(), DispatchClass::Normal, Pays::Yes))] + #[pallet::weight((::WeightInfo::add_to_whitelist(), DispatchClass::Normal, Pays::No))] pub fn add_to_whitelist(origin: OriginFor, key: AccountIdOf) -> DispatchResult { roles::ensure_curator::(origin)?; whitelist::add_to_whitelist::(key) } #[pallet::call_index(5)] - #[pallet::weight((::WeightInfo::remove_from_whitelist(), DispatchClass::Normal, Pays::Yes))] + #[pallet::weight((::WeightInfo::remove_from_whitelist(), DispatchClass::Normal, Pays::No))] pub fn remove_from_whitelist(origin: OriginFor, key: AccountIdOf) -> DispatchResult { roles::ensure_curator::(origin)?; whitelist::remove_from_whitelist::(key) } #[pallet::call_index(6)] - #[pallet::weight((::WeightInfo::accept_application(), DispatchClass::Normal, Pays::Yes))] + #[pallet::weight((::WeightInfo::accept_application(), DispatchClass::Normal, Pays::No))] pub fn accept_application(origin: OriginFor, application_id: u32) -> DispatchResult { roles::ensure_curator::(origin)?; application::accept_application::(application_id) } #[pallet::call_index(7)] - #[pallet::weight((::WeightInfo::deny_application(), DispatchClass::Normal, Pays::Yes))] + #[pallet::weight((::WeightInfo::deny_application(), DispatchClass::Normal, Pays::No))] pub fn deny_application(origin: OriginFor, application_id: u32) -> DispatchResult { roles::ensure_curator::(origin)?; application::deny_application::(application_id) } #[pallet::call_index(8)] - #[pallet::weight((::WeightInfo::penalize_agent(), DispatchClass::Normal, Pays::Yes))] + #[pallet::weight((::WeightInfo::penalize_agent(), DispatchClass::Normal, Pays::No))] pub fn penalize_agent( origin: OriginFor, agent_key: AccountIdOf,