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.rsdiffbeforeafterboth31 fn on_initialize() -> Result<(), BenchmarkError> {31 fn on_initialize() -> Result<(), BenchmarkError> {32 let block1: BlockNumberFor<T> = 1u32.into();32 let block1: BlockNumberFor<T> = 1u32.into();33 let block2: BlockNumberFor<T> = 2u32.into();33 let block2: BlockNumberFor<T> = 2u32.into();34 <Inflation<T> as Hooks>::on_initialize(block1); // Create Treasury account34 <Inflation<T> as Hooks<_>>::on_initialize(block1); // Create Treasury account353536 #[block]36 #[block]37 {37 {38 <Inflation<T> as Hooks>::on_initialize(block2);38 <Inflation<T> as Hooks<_>>::on_initialize(block2);39 // Benchmark deposit_into_existing path39 // Benchmark deposit_into_existing path40 }40 }4141pallets/nonfungible/src/benchmarking.rsdiffbeforeafterboth360 .collect::<Vec<_>>();360 .collect::<Vec<_>>();361 let item = create_max_item(&collection, &owner, owner.clone())?;361 let item = create_max_item(&collection, &owner, owner.clone())?;362362363 let (is_collection_admin, property_permissions) =363 // let (is_collection_admin, property_permissions) =364 load_is_admin_and_property_permissions(&collection, &owner);364 // load_is_admin_and_property_permissions(&collection, &owner);365 todo!();365 todo!();366 #[block]366 #[block]367 {}367 {368 // let mut property_writer = pallet_common::collection_info_loaded_property_writer(368 // let mut property_writer =369 // &collection,369 // pallet_common::BenchmarkPropertyWriter::new(&collection, lazy_collection_info);370 // is_collection_admin,370371 // property_permissions,371 // property_writer.write_token_properties(372 // );372 // item,373373 // props.into_iter(),374 // #[block]374 // crate::erc::ERC721TokenEvent::TokenChanged {375 // {375 // token_id: item.into(),376 // property_writer.write_token_properties(376 // }377 // true,377 // .to_log(T::ContractAddress::get()),378 // item,378 // )?;379 // props.into_iter(),379 }380 // crate::erc::ERC721TokenEvent::TokenChanged {381 // token_id: item.into(),382 // }383 // .to_log(T::ContractAddress::get()),384 // )?;385 // }386380387 Ok(())381 Ok(())388 }382 }pallets/unique/src/benchmarking.rsdiffbeforeafterboth24 erc::CrossAccountId,24 erc::CrossAccountId,25 Config as CommonConfig,25 Config as CommonConfig,26};26};27use sp_std::vec;27use sp_runtime::DispatchError;28use sp_runtime::DispatchError;28use up_data_structs::{29use up_data_structs::{29 CollectionId, CollectionLimits, CollectionMode, MAX_COLLECTION_DESCRIPTION_LENGTH,30 CollectionId, CollectionLimits, CollectionMode, MAX_COLLECTION_DESCRIPTION_LENGTH,