Skip to content
This repository has been archived by the owner on Nov 15, 2023. It is now read-only.

companion for #11796 #1460

Merged
merged 10 commits into from
Jul 31, 2022
Original file line number Diff line number Diff line change
Expand Up @@ -249,4 +249,12 @@ impl<T: frame_system::Config> pallet_uniques::WeightInfo for WeightInfo<T> {
.saturating_add(T::DbWeight::get().reads(2 as Weight))
.saturating_add(T::DbWeight::get().writes(1 as Weight))
}

// Storage: Uniques NextCollectionId (r:1 w:1)
// Storage: Uniques Class (r:1 w:0)
fn try_increment_id() -> Weight {
(19_233_000 as Weight)
.saturating_add(T::DbWeight::get().reads(2 as Weight))
.saturating_add(T::DbWeight::get().writes(1 as Weight))
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -249,4 +249,12 @@ impl<T: frame_system::Config> pallet_uniques::WeightInfo for WeightInfo<T> {
.saturating_add(T::DbWeight::get().reads(2 as Weight))
.saturating_add(T::DbWeight::get().writes(1 as Weight))
}

// Storage: Uniques NextCollectionId (r:1 w:1)
// Storage: Uniques Class (r:1 w:0)
fn try_increment_id() -> Weight {
(19_233_000 as Weight)
.saturating_add(T::DbWeight::get().reads(2 as Weight))
.saturating_add(T::DbWeight::get().writes(1 as Weight))
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -249,4 +249,12 @@ impl<T: frame_system::Config> pallet_uniques::WeightInfo for WeightInfo<T> {
.saturating_add(T::DbWeight::get().reads(2 as Weight))
.saturating_add(T::DbWeight::get().writes(1 as Weight))
}

// Storage: Uniques NextCollectionId (r:1 w:1)
// Storage: Uniques Class (r:1 w:0)
fn try_increment_id() -> Weight {
(19_233_000 as Weight)
.saturating_add(T::DbWeight::get().reads(2 as Weight))
.saturating_add(T::DbWeight::get().writes(1 as Weight))
}
}