difftreelog
fix compilation errors
in: master
4 files changed
node/cli/src/command.rsdiffbeforeafterboth354 }354 }355 #[cfg(feature = "runtime-benchmarks")]355 #[cfg(feature = "runtime-benchmarks")]356 Some(Subcommand::Benchmark(cmd)) => {356 Some(Subcommand::Benchmark(cmd)) => {357 use polkadot_cli::Block;357 use frame_benchmarking_cli::{BenchmarkCmd, SUBSTRATE_REFERENCE_HARDWARE};358 use frame_benchmarking_cli::{BenchmarkCmd, SUBSTRATE_REFERENCE_HARDWARE};358 let runner = cli.create_runner(cmd)?;359 let runner = cli.create_runner(cmd)?;359 // Switch on the concrete benchmark sub-command-360 // Switch on the concrete benchmark sub-command-363 }364 }364 BenchmarkCmd::Block(cmd) => runner.sync_run(|config| {365 BenchmarkCmd::Block(cmd) => runner.sync_run(|config| {365 let partials = new_partial::<366 let partials = new_partial::<367 _,366 default_runtime::RuntimeApi,368 default_runtime::RuntimeApi,367 DefaultRuntimeExecutor,369 DefaultRuntimeExecutor,368 _,370 _,371 }),373 }),372 BenchmarkCmd::Storage(cmd) => runner.sync_run(|config| {374 BenchmarkCmd::Storage(cmd) => runner.sync_run(|config| {373 let partials = new_partial::<375 let partials = new_partial::<376 _,374 default_runtime::RuntimeApi,377 default_runtime::RuntimeApi,375 DefaultRuntimeExecutor,378 DefaultRuntimeExecutor,376 _,379 _,pallets/inflation/src/benchmarking.rsdiffbeforeafterboth--- a/pallets/inflation/src/benchmarking.rs
+++ b/pallets/inflation/src/benchmarking.rs
@@ -31,11 +31,11 @@
fn on_initialize() -> Result<(), BenchmarkError> {
let block1: BlockNumberFor<T> = 1u32.into();
let block2: BlockNumberFor<T> = 2u32.into();
- <Inflation<T> as Hooks>::on_initialize(block1); // Create Treasury account
+ <Inflation<T> as Hooks<_>>::on_initialize(block1); // Create Treasury account
#[block]
{
- <Inflation<T> as Hooks>::on_initialize(block2);
+ <Inflation<T> as Hooks<_>>::on_initialize(block2);
// Benchmark deposit_into_existing path
}
pallets/nonfungible/src/benchmarking.rsdiffbeforeafterboth--- a/pallets/nonfungible/src/benchmarking.rs
+++ b/pallets/nonfungible/src/benchmarking.rs
@@ -360,29 +360,23 @@
.collect::<Vec<_>>();
let item = create_max_item(&collection, &owner, owner.clone())?;
- let (is_collection_admin, property_permissions) =
- load_is_admin_and_property_permissions(&collection, &owner);
+ // let (is_collection_admin, property_permissions) =
+ // load_is_admin_and_property_permissions(&collection, &owner);
todo!();
#[block]
- {}
- // let mut property_writer = pallet_common::collection_info_loaded_property_writer(
- // &collection,
- // is_collection_admin,
- // property_permissions,
- // );
+ {
+ // let mut property_writer =
+ // pallet_common::BenchmarkPropertyWriter::new(&collection, lazy_collection_info);
- // #[block]
- // {
- // property_writer.write_token_properties(
- // true,
- // item,
- // props.into_iter(),
- // crate::erc::ERC721TokenEvent::TokenChanged {
- // token_id: item.into(),
- // }
- // .to_log(T::ContractAddress::get()),
- // )?;
- // }
+ // property_writer.write_token_properties(
+ // item,
+ // props.into_iter(),
+ // crate::erc::ERC721TokenEvent::TokenChanged {
+ // token_id: item.into(),
+ // }
+ // .to_log(T::ContractAddress::get()),
+ // )?;
+ }
Ok(())
}
pallets/unique/src/benchmarking.rsdiffbeforeafterboth--- a/pallets/unique/src/benchmarking.rs
+++ b/pallets/unique/src/benchmarking.rs
@@ -24,6 +24,7 @@
erc::CrossAccountId,
Config as CommonConfig,
};
+use sp_std::vec;
use sp_runtime::DispatchError;
use up_data_structs::{
CollectionId, CollectionLimits, CollectionMode, MAX_COLLECTION_DESCRIPTION_LENGTH,