From 269baabe283b9a15461abfdcc5e9fa51ae05c5dd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jos=C3=A9=20Duarte?= Date: Fri, 24 Jan 2025 12:33:05 +0000 Subject: [PATCH] fix(primitives): benchmark compilation issues --- primitives/src/proofs.rs | 3 ++- primitives/src/sector/pre_commit.rs | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/primitives/src/proofs.rs b/primitives/src/proofs.rs index 846d3d01f..b0c9f8f59 100644 --- a/primitives/src/proofs.rs +++ b/primitives/src/proofs.rs @@ -177,7 +177,8 @@ mod serde_tests { #[cfg(feature = "testing")] pub mod testing { - use sp_core::{bounded_btree_map::BoundedBTreeMap, bounded_vec::BoundedVec, ConstU32}; + use sp_core::ConstU32; + use sp_runtime::{BoundedBTreeMap, BoundedVec}; use crate::{ pallets::ProofVerification, diff --git a/primitives/src/sector/pre_commit.rs b/primitives/src/sector/pre_commit.rs index 44918e7e1..987faa0b2 100644 --- a/primitives/src/sector/pre_commit.rs +++ b/primitives/src/sector/pre_commit.rs @@ -39,7 +39,8 @@ pub mod builder { use cid::Cid; use sp_core::ConstU32; - use sp_runtime::BoundedVec; + use sp_runtime::{BoundedVec, Vec}; + use sp_std::vec; use super::SectorPreCommitInfo; use crate::{