You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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()),
});
The text was updated successfully, but these errors were encountered:
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 should be the enum with following options:
If a precompile is disabled, any call to the precompile should fail with following error:
The text was updated successfully, but these errors were encountered: