diff --git a/pallets/handles/src/benchmarking.rs b/pallets/handles/src/benchmarking.rs index f8d4163b61..fe2ecd6651 100644 --- a/pallets/handles/src/benchmarking.rs +++ b/pallets/handles/src/benchmarking.rs @@ -3,12 +3,12 @@ use super::*; use crate::Pallet as Handles; +use common_primitives::utils::wrap_binary_data; use frame_benchmarking::{benchmarks, whitelisted_caller}; use frame_support::assert_ok; use frame_system::RawOrigin; use sp_core::crypto::KeyTypeId; use sp_runtime::RuntimeAppPublic; -use common_primitives::utils::wrap_binary_data; pub const TEST_KEY_TYPE_ID: KeyTypeId = KeyTypeId(*b"test"); mod app_sr25519 { diff --git a/pallets/passkey/src/benchmarking.rs b/pallets/passkey/src/benchmarking.rs index 668838f4c9..176b930441 100644 --- a/pallets/passkey/src/benchmarking.rs +++ b/pallets/passkey/src/benchmarking.rs @@ -10,12 +10,12 @@ use crate::{ }, types::*, }; +use common_primitives::utils::wrap_binary_data; use frame_benchmarking::benchmarks; use frame_support::assert_ok; use sp_core::{crypto::KeyTypeId, Encode}; use sp_runtime::{traits::Zero, MultiSignature, RuntimeAppPublic}; use sp_std::prelude::*; -use common_primitives::utils::wrap_binary_data; pub const TEST_KEY_TYPE_ID: KeyTypeId = KeyTypeId(*b"test"); diff --git a/pallets/stateful-storage/src/benchmarking.rs b/pallets/stateful-storage/src/benchmarking.rs index 4d81839668..89a3c18a7d 100644 --- a/pallets/stateful-storage/src/benchmarking.rs +++ b/pallets/stateful-storage/src/benchmarking.rs @@ -4,6 +4,7 @@ use crate::{types::ItemAction, Pallet as StatefulStoragePallet}; use common_primitives::{ schema::{ModelType, PayloadLocation}, stateful_storage::{PageHash, PageId}, + utils::wrap_binary_data, }; use frame_benchmarking::{benchmarks, whitelisted_caller}; use frame_support::assert_ok; @@ -13,7 +14,6 @@ use sp_core::{bounded::BoundedVec, crypto::KeyTypeId}; use sp_runtime::RuntimeAppPublic; use stateful_child_tree::StatefulChildTree; use test_common::constants; -use common_primitives::utils::wrap_binary_data; pub const TEST_KEY_TYPE_ID: KeyTypeId = KeyTypeId(*b"test");