-
Notifications
You must be signed in to change notification settings - Fork 288
Closed
Milestone
Description
Create admin pallet methods (callable by sudo only) that will allow to toggle precompiles on and off. In order to avoid admin pallet pollution, implement it as a single sudo_toggle_evm_precompile extrinsic that accepts two parameters:
- Precompile ID (emun)
- Boolean to enable / disable
Precompile ID should be the enum with following options:
- BalanceTransfer
- Staking
- Subnets
- Neurons
If a precompile is disabled, any call to the precompile should fail with following error:
return Err(PrecompileFailure::Error {
exit_status: ExitError::Other("Precompile is disabled".into()),
});
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels