Skip to content

Commit 335f9b2

Browse files
committed
update doc and weigths
1 parent b2e216e commit 335f9b2

File tree

1 file changed

+13
-2
lines changed

1 file changed

+13
-2
lines changed

pallets/admin-utils/src/lib.rs

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1305,9 +1305,20 @@ pub mod pallet {
13051305
T::Grandpa::schedule_change(next_authorities, in_blocks, forced)
13061306
}
13071307

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.
13091320
#[pallet::call_index(60)]
1310-
#[pallet::weight(Weight::from_parts(46_000_000, 0))]
1321+
#[pallet::weight((0, DispatchClass::Operational, Pays::No))]
13111322
pub fn sudo_toggle_evm_precompile(
13121323
origin: OriginFor<T>,
13131324
precompile_id: PrecompileEnum,

0 commit comments

Comments
 (0)