Companion for #9517 (Custom BenchmarkError) (#3600)

* fix benchmark return

* update weight

* update Substrate

Co-authored-by: parity-processbot <>
This commit is contained in:
Shawn Tabrizi
2021-08-19 15:18:46 +02:00
committed by GitHub
parent 94b415de75
commit e265d2e896
4 changed files with 163 additions and 155 deletions
@@ -92,6 +92,10 @@ impl<T: frame_system::Config> pallet_elections_phragmen::WeightInfo for WeightIn
.saturating_add(T::DbWeight::get().reads(5 as Weight))
.saturating_add(T::DbWeight::get().writes(5 as Weight))
}
// Storage: Benchmark Override (r:0 w:0)
fn remove_member_without_replacement() -> Weight {
(2_000_000_000_000 as Weight)
}
fn remove_member_wrong_refund() -> Weight {
(8_551_000 as Weight).saturating_add(T::DbWeight::get().reads(1 as Weight))
}