mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-05-01 00:47:55 +00:00
* fix benchmark return * update weight * update Substrate Co-authored-by: parity-processbot <>
This commit is contained in:
Generated
+153
-153
File diff suppressed because it is too large
Load Diff
@@ -1415,7 +1415,7 @@ mod benchmarking {
|
||||
let source = sp_runtime::transaction_validity::TransactionSource::External;
|
||||
let call = Call::<T>::claim(account.clone(), signature.clone());
|
||||
}: {
|
||||
super::Pallet::<T>::validate_unsigned(source, &call)?;
|
||||
super::Pallet::<T>::validate_unsigned(source, &call).map_err(|e| -> &'static str { e.into() })?;
|
||||
super::Pallet::<T>::claim(RawOrigin::None.into(), account, signature)?;
|
||||
}
|
||||
verify {
|
||||
@@ -1461,7 +1461,7 @@ mod benchmarking {
|
||||
let call = Call::<T>::claim_attest(account.clone(), signature.clone(), StatementKind::Regular.to_text().to_vec());
|
||||
let source = sp_runtime::transaction_validity::TransactionSource::External;
|
||||
}: {
|
||||
super::Pallet::<T>::validate_unsigned(source, &call)?;
|
||||
super::Pallet::<T>::validate_unsigned(source, &call).map_err(|e| -> &'static str { e.into() })?;
|
||||
super::Pallet::<T>::claim_attest(RawOrigin::None.into(), account, signature, statement.to_text().to_vec())?;
|
||||
}
|
||||
verify {
|
||||
|
||||
@@ -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))
|
||||
}
|
||||
|
||||
@@ -97,6 +97,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 {
|
||||
(6_347_000 as Weight).saturating_add(T::DbWeight::get().reads(1 as Weight))
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user