File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -1395,7 +1395,6 @@ pub mod pallet {
1395
1395
#[ pallet:: weight( ( 0 , DispatchClass :: Operational , Pays :: No ) ) ]
1396
1396
pub fn sudo_set_subnet_moving_alpha ( origin : OriginFor < T > , alpha : I96F32 ) -> DispatchResult {
1397
1397
ensure_root ( origin) ?;
1398
- let alpha: I96F32 = I96F32 :: saturating_from_num ( alpha) ;
1399
1398
pallet_subtensor:: SubnetMovingAlpha :: < T > :: set ( alpha) ;
1400
1399
1401
1400
log:: debug!( "SubnetMovingAlphaSet( alpha: {:?} )" , alpha) ;
Original file line number Diff line number Diff line change @@ -1455,7 +1455,8 @@ fn test_sudo_toggle_evm_precompile() {
1455
1455
fn test_sudo_root_sets_subnet_moving_alpha ( ) {
1456
1456
new_test_ext ( ) . execute_with ( || {
1457
1457
let alpha: I96F32 = I96F32 :: saturating_from_num ( 0.5 ) ;
1458
- assert_eq ! ( pallet_subtensor:: SubnetMovingAlpha :: <Test >:: get( ) , 0 ) ;
1458
+ let initial = pallet_subtensor:: SubnetMovingAlpha :: < Test > :: get ( ) ;
1459
+ assert ! ( initial != alpha) ;
1459
1460
1460
1461
assert_ok ! ( AdminUtils :: sudo_set_subnet_moving_alpha(
1461
1462
<<Test as Config >:: RuntimeOrigin >:: root( ) ,
You can’t perform that action at this time.
0 commit comments