File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change 1
1
# Sudo Module
2
2
3
- - [ ` sudo::Trait ` ] ( https://docs.rs/pallet-sudo/latest/pallet_sudo/trait.Trait .html )
3
+ - [ ` sudo::Config ` ] ( https://docs.rs/pallet-sudo/latest/pallet_sudo/trait.Config .html )
4
4
- [ ` Call ` ] ( https://docs.rs/pallet-sudo/latest/pallet_sudo/enum.Call.html )
5
5
6
6
## Overview
@@ -38,10 +38,10 @@ This is an example of a module that exposes a privileged function:
38
38
use frame_support :: {decl_module, dispatch};
39
39
use frame_system :: ensure_root;
40
40
41
- pub trait Trait : frame_system :: Trait {}
41
+ pub trait Config : frame_system :: Config {}
42
42
43
43
decl_module! {
44
- pub struct Module <T : Trait > for enum Call where origin : T :: Origin {
44
+ pub struct Module <T : Config > for enum Call where origin : T :: Origin {
45
45
#[weight = 0]
46
46
pub fn privileged_function (origin ) -> dispatch :: DispatchResult {
47
47
ensure_root (origin )? ;
@@ -64,7 +64,7 @@ You need to set an initial superuser account as the sudo `key`.
64
64
* [ Democracy] ( https://docs.rs/pallet-democracy/latest/pallet_democracy/ )
65
65
66
66
[ `Call` ] : ./enum.Call.html
67
- [ `Trait ` ] : ./trait.Trait .html
67
+ [ `Config ` ] : ./trait.Config .html
68
68
[ `Origin` ] : https://docs.substrate.dev/docs/substrate-types
69
69
70
70
License: Apache-2.0
You can’t perform that action at this time.
0 commit comments