difftreelog
fix compilation errors
in: master
4 files changed
node/cli/src/command.rsdiffbeforeafterboth--- a/node/cli/src/command.rs
+++ b/node/cli/src/command.rs
@@ -354,6 +354,7 @@
}
#[cfg(feature = "runtime-benchmarks")]
Some(Subcommand::Benchmark(cmd)) => {
+ use polkadot_cli::Block;
use frame_benchmarking_cli::{BenchmarkCmd, SUBSTRATE_REFERENCE_HARDWARE};
let runner = cli.create_runner(cmd)?;
// Switch on the concrete benchmark sub-command-
@@ -363,6 +364,7 @@
}
BenchmarkCmd::Block(cmd) => runner.sync_run(|config| {
let partials = new_partial::<
+ _,
default_runtime::RuntimeApi,
DefaultRuntimeExecutor,
_,
@@ -371,6 +373,7 @@
}),
BenchmarkCmd::Storage(cmd) => runner.sync_run(|config| {
let partials = new_partial::<
+ _,
default_runtime::RuntimeApi,
DefaultRuntimeExecutor,
_,
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.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.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,