Skip to content

Commit

Permalink
Update pallets/support/src/lib.rs
Browse files Browse the repository at this point in the history
Co-authored-by: Richard Roznovjak <[email protected]>
  • Loading branch information
dmoka and Roznovjak authored Jan 6, 2025
1 parent d1d565a commit c3c0931
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions pallets/support/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -88,12 +88,9 @@ pub mod pallet {
#[pallet::hooks]
impl<T: Config> Hooks<BlockNumberFor<T>> for Pallet<T> {
fn on_initialize(_n: BlockNumberFor<T>) -> Weight {
let mut weight: Weight = Weight::zero();
weight.saturating_accrue(T::DbWeight::get().reads_writes(1, 1));

ExecutionContext::<T>::kill();

Weight::from_parts(weight.ref_time(), 0)
T::DbWeight::get().reads_writes(1, 1)
}
}

Expand Down

0 comments on commit c3c0931

Please sign in to comment.