mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-05-30 17:31:03 +00:00
Migrate to Weight::from_parts (#6794)
* Migrate to from_parts Have a look at https://github.com/ggwpez/substrate-scripts/blob/master/migrate-from-parts.py Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io> * Adapt to master Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io> * update lockfile for {"substrate"} --------- Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io> Co-authored-by: parity-processbot <>
This commit is contained in:
committed by
GitHub
parent
c5637bda91
commit
177bedc160
@@ -54,8 +54,8 @@ impl<T: frame_system::Config> pallet_timestamp::WeightInfo for WeightInfo<T> {
|
||||
// Measured: `345`
|
||||
// Estimated: `1006`
|
||||
// Minimum execution time: 9_092 nanoseconds.
|
||||
Weight::from_ref_time(9_434_000)
|
||||
.saturating_add(Weight::from_proof_size(1006))
|
||||
Weight::from_parts(9_434_000, 0)
|
||||
.saturating_add(Weight::from_parts(0, 1006))
|
||||
.saturating_add(T::DbWeight::get().reads(2))
|
||||
.saturating_add(T::DbWeight::get().writes(1))
|
||||
}
|
||||
@@ -64,7 +64,7 @@ impl<T: frame_system::Config> pallet_timestamp::WeightInfo for WeightInfo<T> {
|
||||
// Measured: `128`
|
||||
// Estimated: `0`
|
||||
// Minimum execution time: 3_824 nanoseconds.
|
||||
Weight::from_ref_time(4_092_000)
|
||||
.saturating_add(Weight::from_proof_size(0))
|
||||
Weight::from_parts(4_092_000, 0)
|
||||
.saturating_add(Weight::from_parts(0, 0))
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user