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).

Warning: Doc-Only

This function is an automatically generated, and is doc-only, uncallable stub. See the real version in Pallet::set_key.