From 793f0790a2a9afadbf168f721f90d7bc7aa169fd Mon Sep 17 00:00:00 2001 From: yahortsaryk Date: Fri, 29 Nov 2024 04:22:36 +0100 Subject: [PATCH] fix: missing import --- pallets/ddc-verification/src/lib.rs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/pallets/ddc-verification/src/lib.rs b/pallets/ddc-verification/src/lib.rs index f6331a613..134fd51f3 100644 --- a/pallets/ddc-verification/src/lib.rs +++ b/pallets/ddc-verification/src/lib.rs @@ -60,6 +60,8 @@ use sp_std::{ prelude::*, }; pub mod weights; +use sp_io::hashing::blake2_256; + use crate::weights::WeightInfo; #[cfg(feature = "runtime-benchmarks")] @@ -139,7 +141,7 @@ pub mod pallet { data.extend_from_slice(&self.payers_root.encode()); data.extend_from_slice(&self.payees_root.encode()); data.extend_from_slice(&self.cluster_usage.encode()); - sp_core::blake2_256(&data).into() + blake2_256(&data).into() } }