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 2
2
3
3
The Timestamp module provides functionality to get and set the on-chain time.
4
4
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 )
6
6
- [ ` Call ` ] ( https://docs.rs/pallet-timestamp/latest/pallet_timestamp/enum.Call.html )
7
7
- [ ` Module ` ] ( https://docs.rs/pallet-timestamp/latest/pallet_timestamp/struct.Module.html )
8
8
@@ -29,7 +29,7 @@ because of cumulative calculation errors and hence should be avoided.
29
29
* ` get ` - Gets the current time for the current block. If this function is called prior to
30
30
setting the timestamp, it will return the timestamp of the previous block.
31
31
32
- ### Trait Getters
32
+ ### Config Getters
33
33
34
34
* ` MinimumPeriod ` - Gets the minimum (and advised) period between blocks for the chain.
35
35
@@ -48,10 +48,10 @@ trait from the timestamp trait.
48
48
use frame_support :: {decl_module, dispatch};
49
49
use frame_system :: ensure_signed;
50
50
51
- pub trait Trait : timestamp :: Trait {}
51
+ pub trait Config : timestamp :: Config {}
52
52
53
53
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 {
55
55
#[weight = 0]
56
56
pub fn get_time (origin ) -> dispatch :: DispatchResult {
57
57
let _sender = ensure_signed (origin )? ;
You can’t perform that action at this time.
0 commit comments