@@ -28,8 +28,8 @@ pub mod pallet {
28
28
use frame_support:: { dispatch:: DispatchResult , pallet_prelude:: StorageMap } ;
29
29
use frame_system:: pallet_prelude:: * ;
30
30
use pallet_evm_chain_id:: { self , ChainId } ;
31
- use substrate_fixed:: types:: I96F32 ;
32
31
use sp_runtime:: BoundedVec ;
32
+ use substrate_fixed:: types:: I96F32 ;
33
33
34
34
/// The main data structure of the module.
35
35
#[ pallet:: pallet]
@@ -1379,7 +1379,7 @@ pub mod pallet {
1379
1379
Ok ( ( ) )
1380
1380
}
1381
1381
1382
- ///
1382
+ ///
1383
1383
///
1384
1384
/// # Arguments
1385
1385
/// * `origin` - The origin of the call, which must be the root account.
@@ -1393,15 +1393,12 @@ pub mod pallet {
1393
1393
/// Weight is handled by the `#[pallet::weight]` attribute.
1394
1394
#[ pallet:: call_index( 63 ) ]
1395
1395
#[ pallet:: weight( ( 0 , DispatchClass :: Operational , Pays :: No ) ) ]
1396
- pub fn sudo_set_subnet_moving_alpha (
1397
- origin : OriginFor < T > ,
1398
- alpha : I96F32 ,
1399
- ) -> DispatchResult {
1396
+ pub fn sudo_set_subnet_moving_alpha ( origin : OriginFor < T > , alpha : I96F32 ) -> DispatchResult {
1400
1397
ensure_root ( origin) ?;
1401
- let alpha: I96F32 = I96F32 :: saturating_from_num ( alpha) ;
1398
+ let alpha: I96F32 = I96F32 :: saturating_from_num ( alpha) ;
1402
1399
pallet_subtensor:: SubnetMovingAlpha :: < T > :: set ( alpha) ;
1403
1400
1404
- log:: debug!( "SubnetMovingAlphaSet( alpha: {:?} )" , alpha) ;
1401
+ log:: debug!( "SubnetMovingAlphaSet( alpha: {:?} )" , alpha) ;
1405
1402
Ok ( ( ) )
1406
1403
}
1407
1404
}
0 commit comments