Skip to content

Commit

Permalink
[minor]refactor: NativeVersion and RuntimeVersion
Browse files Browse the repository at this point in the history
  • Loading branch information
SHA888 committed Jul 2, 2021
1 parent ae72aae commit 6375f28
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions runtime/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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};
Expand All @@ -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))]
Expand Down

0 comments on commit 6375f28

Please sign in to comment.