Skip to content
This repository has been archived by the owner on Nov 15, 2023. It is now read-only.

Commit

Permalink
Bring back genesis storage build in aura/timestamp
Browse files Browse the repository at this point in the history
To not change spec version, see
#7686 (comment)
  • Loading branch information
Xanewok committed Jan 6, 2021
1 parent e4783a6 commit ffb9407
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion frame/aura/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ pub trait Trait: pallet_timestamp::Trait {
decl_storage! {
trait Store for Module<T: Trait> as Aura {
/// The last timestamp.
LastTimestamp get(fn last): T::Moment;
LastTimestamp get(fn last) build(|_| 0u32.into()): T::Moment;

/// The current authorities
pub Authorities get(fn authorities): Vec<T::AuthorityId>;
Expand Down
2 changes: 1 addition & 1 deletion frame/timestamp/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -200,7 +200,7 @@ decl_module! {
decl_storage! {
trait Store for Module<T: Trait> as Timestamp {
/// Current time for the current block.
pub Now get(fn now): T::Moment;
pub Now get(fn now) build(|_| 0u32.into()): T::Moment;

/// Did the timestamp get updated in this block?
DidUpdate: bool;
Expand Down

0 comments on commit ffb9407

Please sign in to comment.