File tree Expand file tree Collapse file tree 2 files changed +8
-3
lines changed Expand file tree Collapse file tree 2 files changed +8
-3
lines changed Original file line number Diff line number Diff line change @@ -1082,7 +1082,7 @@ pub mod pallet {
10821082 Weight :: from_parts( 14_000_000 , 0 )
10831083 . saturating_add( <T as frame_system:: Config >:: DbWeight :: get( ) . writes( 1 ) ) ,
10841084 DispatchClass :: Operational ,
1085- Pays :: No
1085+ Pays :: Yes
10861086 ) ) ]
10871087 pub fn sudo_set_subnet_limit ( origin : OriginFor < T > , max_subnets : u16 ) -> DispatchResult {
10881088 ensure_root ( origin) ?;
@@ -1639,7 +1639,12 @@ pub mod pallet {
16391639 /// # Weight
16401640 /// Weight is handled by the `#[pallet::weight]` attribute.
16411641 #[ pallet:: call_index( 64 ) ]
1642- #[ pallet:: weight( ( 0 , DispatchClass :: Operational , Pays :: No ) ) ]
1642+ #[ pallet:: weight( (
1643+ Weight :: from_parts( 3_918_000 , 0 ) // TODO: add benchmarks
1644+ . saturating_add( T :: DbWeight :: get( ) . writes( 1_u64 ) ) ,
1645+ DispatchClass :: Operational ,
1646+ Pays :: Yes
1647+ ) ) ]
16431648 pub fn sudo_set_subnet_owner_hotkey (
16441649 origin : OriginFor < T > ,
16451650 netuid : NetUid ,
Original file line number Diff line number Diff line change @@ -2304,7 +2304,7 @@ mod dispatches {
23042304 #[ pallet:: call_index( 120 ) ]
23052305 #[ pallet:: weight( ( Weight :: from_parts( 119_000_000 , 0 )
23062306 . saturating_add( T :: DbWeight :: get( ) . reads( 6 ) )
2307- . saturating_add( T :: DbWeight :: get( ) . writes( 31 ) ) , DispatchClass :: Operational , Pays :: No ) ) ]
2307+ . saturating_add( T :: DbWeight :: get( ) . writes( 31 ) ) , DispatchClass :: Operational , Pays :: Yes ) ) ]
23082308 pub fn root_dissolve_network ( origin : OriginFor < T > , netuid : NetUid ) -> DispatchResult {
23092309 ensure_root ( origin) ?;
23102310 Self :: do_dissolve_network ( netuid)
You can’t perform that action at this time.
0 commit comments