Skip to content
This repository was archived by the owner on Nov 15, 2023. It is now read-only.
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Unify private visbility.
  • Loading branch information
shaunxw committed Feb 9, 2021
commit fa2d670883d6ea37aa328b92d1c1753170f225a3
4 changes: 2 additions & 2 deletions frame/timestamp/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,7 @@ pub mod pallet {

/// Did the timestamp get updated in this block?
#[pallet::storage]
pub(crate) type DidUpdate<T: Config> = StorageValue<_, bool, ValueQuery>;
pub(super) type DidUpdate<T: Config> = StorageValue<_, bool, ValueQuery>;

#[pallet::hooks]
impl<T: Config> Hooks<BlockNumberFor<T>> for Pallet<T> {
Expand Down Expand Up @@ -192,7 +192,7 @@ pub mod pallet {
T::WeightInfo::set(),
DispatchClass::Mandatory
))]
pub(crate) fn set(origin: OriginFor<T>, #[pallet::compact] now: T::Moment) -> DispatchResultWithPostInfo {
pub(super) fn set(origin: OriginFor<T>, #[pallet::compact] now: T::Moment) -> DispatchResultWithPostInfo {
ensure_none(origin)?;
assert!(!<Self as Store>::DidUpdate::exists(), "Timestamp must be updated only once in the block");
let prev = Self::now();
Expand Down