From 4d19438402c789ddc1e000cca272b3d602becd0a Mon Sep 17 00:00:00 2001 From: Daniel Shiposha Date: Thu, 12 Jan 2023 14:13:34 +0000 Subject: [PATCH] fix: benchmarking --- --- a/pallets/common/src/benchmarking.rs +++ b/pallets/common/src/benchmarking.rs @@ -176,7 +176,7 @@ key: property_key(p as usize), value: property_value(), }).collect::>(); - }: {>::set_collection_properties(&collection, &owner, props)?} + }: {>::set_collection_properties(&collection, &owner, props.into_iter())?} delete_collection_properties { let b in 0..MAX_PROPERTIES_PER_ITEM; @@ -188,7 +188,7 @@ key: property_key(p as usize), value: property_value(), }).collect::>(); - >::set_collection_properties(&collection, &owner, props)?; + >::set_collection_properties(&collection, &owner, props.into_iter())?; let to_delete = (0..b).map(|p| property_key(p as usize)).collect::>(); - }: {>::delete_collection_properties(&collection, &owner, to_delete)?} + }: {>::delete_collection_properties(&collection, &owner, to_delete.into_iter())?} } -- gitstuff