Function pallet_sudo::pallet::dispatchables::set_key
source · pub fn set_key<T: Config>(new: <<T as Config>::Lookup as StaticLookup>::Source)
Expand description
Authenticates the current sudo key and sets the given AccountId (new
) as the new sudo
key.
The dispatch origin for this call must be Signed.
Complexity
- O(1).
NOTE: This function is an automatically generated, doc only, uncallable stub.
designed to document the set_key
variant of
the pallet Call
enum. You should not attempt to call this function
directly.