make all extrinsics public so they are available from outside (#9078)

Co-authored-by: thiolliere <gui.thiolliere@gmail.com>
This commit is contained in:
Alexander Popiakandthiolliere authored and GitHub committed 2021-06-12 12:43:08 +02:00
1 parent ad5b8afa6e
commit 5dec6e5c81
21 files changed
+155 -155

No files matched your search

+1 -1
View File
@@ -184,7 +184,7 @@ pub mod pallet {
T::WeightInfo::set(),
DispatchClass::Mandatory
))]
pub(super) fn set(origin: OriginFor<T>, #[pallet::compact] now: T::Moment) -> DispatchResult {
pub fn set(origin: OriginFor<T>, #[pallet::compact] now: T::Moment) -> DispatchResult {
ensure_none(origin)?;
assert!(!DidUpdate::<T>::exists(), "Timestamp must be updated only once in the block");
let prev = Self::now();