Skip to content

Commit

Permalink
chore: fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
Supremesource committed Dec 3, 2024
1 parent cfbb385 commit e7f12c9
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
10 changes: 5 additions & 5 deletions pallets/subnet_emission/src/benchmarking.rs
Original file line number Diff line number Diff line change
Expand Up @@ -73,20 +73,20 @@ benchmarks! {
register_mock::<T>(module_key.clone(), module_key.clone(), "test".as_bytes().to_vec())?;
register_mock::<T>(module_key2.clone(), module_key2.clone(), "test1".as_bytes().to_vec())?;
let netuid = SubspaceMod::<T>::get_netuid_for_name("testnet".as_bytes()).unwrap();

}: delegate_weight_control(RawOrigin::Signed(module_key), netuid, module_key2.clone())

remove_weight_control {
// we first delegate
let module_key: T::AccountId = account("ModuleKey", 0, 2);
let module_key2: T::AccountId = account("ModuleKey2", 0, 3);

register_mock::<T>(module_key.clone(), module_key.clone(), "test".as_bytes().to_vec())?;
register_mock::<T>(module_key2.clone(), module_key2.clone(), "test1".as_bytes().to_vec())?;

let netuid = SubspaceMod::<T>::get_netuid_for_name("testnet".as_bytes()).unwrap();

let _ = Pallet::<T>::delegate_weight_control(RawOrigin::Signed(module_key.clone()).into(), netuid, module_key2.clone());

}: remove_weight_control(RawOrigin::Signed(module_key), netuid)
}
2 changes: 1 addition & 1 deletion pallets/subnet_emission/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ mod benchmarking;

#[frame_support::pallet]
pub mod pallet {
pub use crate::weights::WeightInfo;
use crate::{subnet_consensus::util::params::ConsensusParams, *};
use frame_support::{
pallet_prelude::{ValueQuery, *},
Expand All @@ -42,7 +43,6 @@ pub mod pallet {
use pallet_subnet_emission_api::SubnetConsensus;
use pallet_subspace::{define_module_includes, define_subnet_includes, TotalStake};
use subnet_pricing::root::RootPricing;
pub use crate::weights::WeightInfo;

#[cfg(feature = "testnet")]
const STORAGE_VERSION: StorageVersion = StorageVersion::new(16);
Expand Down

0 comments on commit e7f12c9

Please sign in to comment.