Skip to content

Commit 8fb318d

Browse files
authored
Renames of Trait to Config in README.md, weight templates and few minor ones (#7636)
* manual rename * renamse in README.md * fix template
1 parent 7c66c5f commit 8fb318d

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Sudo Module
22

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)
44
- [`Call`](https://docs.rs/pallet-sudo/latest/pallet_sudo/enum.Call.html)
55

66
## Overview
@@ -38,10 +38,10 @@ This is an example of a module that exposes a privileged function:
3838
use frame_support::{decl_module, dispatch};
3939
use frame_system::ensure_root;
4040

41-
pub trait Trait: frame_system::Trait {}
41+
pub trait Config: frame_system::Config {}
4242

4343
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 {
4545
#[weight = 0]
4646
pub fn privileged_function(origin) -> dispatch::DispatchResult {
4747
ensure_root(origin)?;
@@ -64,7 +64,7 @@ You need to set an initial superuser account as the sudo `key`.
6464
* [Democracy](https://docs.rs/pallet-democracy/latest/pallet_democracy/)
6565

6666
[`Call`]: ./enum.Call.html
67-
[`Trait`]: ./trait.Trait.html
67+
[`Config`]: ./trait.Config.html
6868
[`Origin`]: https://docs.substrate.dev/docs/substrate-types
6969

7070
License: Apache-2.0

0 commit comments

Comments
 (0)