From 6375f2894b637c00f70612df9f22e0407fb3ed41 Mon Sep 17 00:00:00 2001 From: Kresna Sucandra Date: Fri, 2 Jul 2021 20:19:38 +0800 Subject: [PATCH] [minor]refactor: NativeVersion and RuntimeVersion --- runtime/src/lib.rs | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/runtime/src/lib.rs b/runtime/src/lib.rs index 062cb7ed..7cce1644 100644 --- a/runtime/src/lib.rs +++ b/runtime/src/lib.rs @@ -4,7 +4,9 @@ // Make the WASM binary available. #[cfg(feature = "std")] +use sp_version::NativeVersion; include!(concat!(env!("OUT_DIR"), "/wasm_binary.rs")); +use sp_version::RuntimeVersion; use sp_std::prelude::*; use sp_core::{crypto::KeyTypeId, OpaqueMetadata}; @@ -19,9 +21,6 @@ use sp_api::impl_runtime_apis; use sp_consensus_aura::sr25519::AuthorityId as AuraId; use pallet_grandpa::{AuthorityId as GrandpaId, AuthorityList as GrandpaAuthorityList}; use pallet_grandpa::fg_primitives; -use sp_version::RuntimeVersion; -#[cfg(feature = "std")] -use sp_version::NativeVersion; // A few exports that help ease life for downstream crates. #[cfg(any(feature = "std", test))]