diff --git a/Cargo.lock b/Cargo.lock index eaa0d2667c73..6f3017478e63 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -3516,6 +3516,7 @@ dependencies = [ "cumulus-primitives-utility 0.7.0", "frame-benchmarking 28.0.0", "frame-executive 28.0.0", + "frame-metadata-hash-extension 0.1.0", "frame-support 28.0.0", "frame-system 28.0.0", "frame-system-benchmarking 28.0.0", diff --git a/substrate/frame/salary/src/lib.rs b/substrate/frame/salary/src/lib.rs index 9893b7c2d3e9..ff1fcdc16490 100644 --- a/substrate/frame/salary/src/lib.rs +++ b/substrate/frame/salary/src/lib.rs @@ -403,7 +403,7 @@ pub mod pallet { status.cycle_start.saturating_accrue(cycle_period); now >= status.cycle_start })] - #[pallet::task_weight(T::WeightInfo::bump_offchain())] + #[pallet::task_weight(T::DbWeight::get().reads(1))] #[pallet::task_index(0)] pub fn bump_offchain() -> DispatchResult { let mut status = Status::::get().ok_or(Error::::NotStarted)?; diff --git a/substrate/frame/salary/src/weights.rs b/substrate/frame/salary/src/weights.rs index 94b7ff0c1cf6..52cb0e1f89bf 100644 --- a/substrate/frame/salary/src/weights.rs +++ b/substrate/frame/salary/src/weights.rs @@ -283,7 +283,7 @@ impl WeightInfo for () { // Minimum execution time: 7_000_000 picoseconds. Weight::from_parts(8_000_000, 0) .saturating_add(Weight::from_parts(0, 1541)) - .saturating_add(T::DbWeight::get().reads(1)) - .saturating_add(T::DbWeight::get().writes(1)) + .saturating_add(RocksDbWeight::get().reads(1)) + .saturating_add(RocksDbWeight::get().writes(1)) } }