Function pallet_safe_mode::pallet::dispatchables::enter
source · pub fn enter<T: Config>()
Expand description
Enter safe-mode permissionlessly for Config::EnterDuration
blocks.
Reserves Config::EnterDepositAmount
from the caller’s account.
Emits an Event::Entered
event on success.
Errors with Error::Entered
if the safe-mode is already entered.
Errors with Error::NotConfigured
if the deposit amount is None
.
Warning: Doc-Only
This function is an automatically generated, and is doc-only, uncallable
stub. See the real version in
Pallet::enter
.