Skip to content

Commit 82baec7

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 0b8aa02 commit 82baec7

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
@@ -2,7 +2,7 @@
22

33
The Timestamp module provides functionality to get and set the on-chain time.
44

5-
- [`timestamp::Trait`](https://docs.rs/pallet-timestamp/latest/pallet_timestamp/trait.Trait.html)
5+
- [`timestamp::Config`](https://docs.rs/pallet-timestamp/latest/pallet_timestamp/trait.Config.html)
66
- [`Call`](https://docs.rs/pallet-timestamp/latest/pallet_timestamp/enum.Call.html)
77
- [`Module`](https://docs.rs/pallet-timestamp/latest/pallet_timestamp/struct.Module.html)
88

@@ -29,7 +29,7 @@ because of cumulative calculation errors and hence should be avoided.
2929
* `get` - Gets the current time for the current block. If this function is called prior to
3030
setting the timestamp, it will return the timestamp of the previous block.
3131

32-
### Trait Getters
32+
### Config Getters
3333

3434
* `MinimumPeriod` - Gets the minimum (and advised) period between blocks for the chain.
3535

@@ -48,10 +48,10 @@ trait from the timestamp trait.
4848
use frame_support::{decl_module, dispatch};
4949
use frame_system::ensure_signed;
5050

51-
pub trait Trait: timestamp::Trait {}
51+
pub trait Config: timestamp::Config {}
5252

5353
decl_module! {
54-
pub struct Module<T: Trait> for enum Call where origin: T::Origin {
54+
pub struct Module<T: Config> for enum Call where origin: T::Origin {
5555
#[weight = 0]
5656
pub fn get_time(origin) -> dispatch::DispatchResult {
5757
let _sender = ensure_signed(origin)?;

0 commit comments

Comments
 (0)