File tree Expand file tree Collapse file tree 1 file changed +13
-2
lines changed Expand file tree Collapse file tree 1 file changed +13
-2
lines changed Original file line number Diff line number Diff line change @@ -1305,9 +1305,20 @@ pub mod pallet {
1305
1305
T :: Grandpa :: schedule_change ( next_authorities, in_blocks, forced)
1306
1306
}
1307
1307
1308
- /// A public interface for `pallet_grandpa::Pallet::schedule_grandpa_change`.
1308
+ /// Toggles the enablement of an EVM precompile.
1309
+ ///
1310
+ /// # Arguments
1311
+ /// * `origin` - The origin of the call, which must be the root account.
1312
+ /// * `precompile_id` - The identifier of the EVM precompile to toggle.
1313
+ /// * `enabled` - The new enablement state of the precompile.
1314
+ ///
1315
+ /// # Errors
1316
+ /// * `BadOrigin` - If the caller is not the root account.
1317
+ ///
1318
+ /// # Weight
1319
+ /// Weight is handled by the `#[pallet::weight]` attribute.
1309
1320
#[ pallet:: call_index( 60 ) ]
1310
- #[ pallet:: weight( Weight :: from_parts ( 46_000_000 , 0 ) ) ]
1321
+ #[ pallet:: weight( ( 0 , DispatchClass :: Operational , Pays :: No ) ) ]
1311
1322
pub fn sudo_toggle_evm_precompile (
1312
1323
origin : OriginFor < T > ,
1313
1324
precompile_id : PrecompileEnum ,
You can’t perform that action at this time.
0 commit comments