chore: regenerate umbrella crate, fix feature propagation
This commit is contained in:
@@ -39,9 +39,9 @@ pub mod v1;
|
||||
pub mod __private {
|
||||
pub use alloc::{boxed::Box, str, vec, vec::Vec};
|
||||
pub use codec;
|
||||
pub use pezframe_support::{storage, traits};
|
||||
pub use log;
|
||||
pub use paste;
|
||||
pub use pezframe_support::{storage, traits};
|
||||
pub use pezsp_core::defer;
|
||||
pub use pezsp_io::storage::root as storage_root;
|
||||
pub use pezsp_runtime::{traits::Zero, StateVersion};
|
||||
|
||||
@@ -351,7 +351,10 @@ mod benchmarks {
|
||||
Pezpallet::<Test>::test_benchmark_override_benchmark(),
|
||||
Err(BenchmarkError::Override(_)),
|
||||
));
|
||||
assert_eq!(Pezpallet::<Test>::test_benchmark_skip_benchmark(), Err(BenchmarkError::Skip),);
|
||||
assert_eq!(
|
||||
Pezpallet::<Test>::test_benchmark_skip_benchmark(),
|
||||
Err(BenchmarkError::Skip),
|
||||
);
|
||||
});
|
||||
}
|
||||
|
||||
@@ -367,7 +370,10 @@ mod benchmarks {
|
||||
assert_eq!(Value::<Test>::get(), None);
|
||||
|
||||
// It resets when the error happens in the call:
|
||||
assert_err!(Pezpallet::<Test>::test_benchmark_modify_in_call_then_error(), "Should error");
|
||||
assert_err!(
|
||||
Pezpallet::<Test>::test_benchmark_modify_in_call_then_error(),
|
||||
"Should error"
|
||||
);
|
||||
assert_eq!(Value::<Test>::get(), None);
|
||||
|
||||
// It resets when the error happens in the verify:
|
||||
|
||||
@@ -18,10 +18,9 @@
|
||||
//! Interfaces, types and utils for benchmarking a FRAME runtime.
|
||||
use alloc::vec::Vec;
|
||||
use codec::{Decode, Encode};
|
||||
use pezframe_support::{dispatch::DispatchErrorWithPostInfo, pezpallet_prelude::*, traits::StorageInfo};
|
||||
use scale_info::TypeInfo;
|
||||
#[cfg(feature = "std")]
|
||||
use serde::{Deserialize, Serialize};
|
||||
use pezframe_support::{
|
||||
dispatch::DispatchErrorWithPostInfo, pezpallet_prelude::*, traits::StorageInfo,
|
||||
};
|
||||
use pezsp_io::hashing::blake2_256;
|
||||
use pezsp_runtime::{
|
||||
traits::TrailingZeroInput, transaction_validity::TransactionValidityError, DispatchError,
|
||||
@@ -31,6 +30,9 @@ use pezsp_runtime_interface::pass_by::{
|
||||
PassFatPointerAndRead,
|
||||
};
|
||||
use pezsp_storage::TrackedStorageKey;
|
||||
use scale_info::TypeInfo;
|
||||
#[cfg(feature = "std")]
|
||||
use serde::{Deserialize, Serialize};
|
||||
|
||||
/// An alphabet of possible parameters to use for benchmarking.
|
||||
#[cfg_attr(feature = "std", derive(Serialize, Deserialize))]
|
||||
|
||||
@@ -188,7 +188,8 @@ macro_rules! benchmarks {
|
||||
|
||||
/// Same as [`benchmarks`] but for instantiable module.
|
||||
///
|
||||
/// NOTE: For pezpallet declared with [`pezframe_support::pezpallet`], use [`benchmarks_instance_pallet`].
|
||||
/// NOTE: For pezpallet declared with [`pezframe_support::pezpallet`], use
|
||||
/// [`benchmarks_instance_pallet`].
|
||||
#[macro_export]
|
||||
macro_rules! benchmarks_instance {
|
||||
(
|
||||
@@ -1799,9 +1800,9 @@ pub fn show_benchmark_debug_info(
|
||||
///
|
||||
/// At the end of `dispatch_benchmark`, you should return this batches object.
|
||||
///
|
||||
/// In the case where you have multiple instances of a pezpallet that you need to separately benchmark,
|
||||
/// the name of your module struct will be used as a suffix to your outputted weight file. For
|
||||
/// example:
|
||||
/// In the case where you have multiple instances of a pezpallet that you need to separately
|
||||
/// benchmark, the name of your module struct will be used as a suffix to your outputted weight
|
||||
/// file. For example:
|
||||
///
|
||||
/// ```ignore
|
||||
/// add_benchmark!(params, batches, pezpallet_balances, Balances); // pezpallet_balances.rs
|
||||
|
||||
Reference in New Issue
Block a user