mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-04-26 18:07:58 +00:00
Update pallet macro migrations. (#8766)
* Update pallet macro migrations. * Revert dispatchable call visibility changes. * fmt
This commit is contained in:
@@ -183,7 +183,7 @@ pub mod pallet {
|
||||
T::WeightInfo::set(),
|
||||
DispatchClass::Mandatory
|
||||
))]
|
||||
pub(super) fn set(origin: OriginFor<T>, #[pallet::compact] now: T::Moment) -> DispatchResultWithPostInfo {
|
||||
pub(super) 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();
|
||||
@@ -196,7 +196,7 @@ pub mod pallet {
|
||||
|
||||
<T::OnTimestampSet as OnTimestampSet<_>>::on_timestamp_set(now);
|
||||
|
||||
Ok(().into())
|
||||
Ok(())
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user