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

expose set_timestamp for runtime benchmarks #8601

Merged
merged 2 commits into from
Apr 13, 2021
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
2 changes: 1 addition & 1 deletion frame/timestamp/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -254,7 +254,7 @@ impl<T: Config> Pallet<T> {
}

/// Set the timestamp to something in particular. Only used for tests.
#[cfg(feature = "std")]
#[cfg(any(feature = "runtime-benchmarks", test))]
xlc marked this conversation as resolved.
Show resolved Hide resolved
pub fn set_timestamp(now: T::Moment) {
Now::<T>::put(now);
}
Expand Down