From 24c60e83c99c3fcb9ea1c8e2c1226be0382debc5 Mon Sep 17 00:00:00 2001 From: runcomet Date: Sun, 29 Dec 2024 01:49:38 +0100 Subject: [PATCH] add std in testing::HeaderTest --- substrate/frame/src/lib.rs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/substrate/frame/src/lib.rs b/substrate/frame/src/lib.rs index a385bbcb5a48..0e41f77d6bee 100644 --- a/substrate/frame/src/lib.rs +++ b/substrate/frame/src/lib.rs @@ -551,7 +551,10 @@ pub mod account { pub mod block { pub use frame_support::ConsensusEngineId; pub use frame_system::limits; - pub use sp_runtime::{generic::DigestItem, testing::Header as HeaderTest, traits::Header}; + pub use sp_runtime::{generic::DigestItem, traits::Header}; + + #[cfg(feature = "std")] + pub use sp_runtime::testing::Header as HeaderTest; } /// Access to all of the dependencies of this crate. In case the prelude re-exports are not enough,