Skip to content

Commit 40c1877

Browse files
authored
Merge pull request #105 from automata-network/fix/fmt
cargo fmt
2 parents 7a62f1b + 3daf360 commit 40c1877

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

node/src/chain_spec.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,6 @@ use finitestate::{constants::currency::*, GenesisConfig, StakerStatus};
2222
use finitestate_runtime as finitestate;
2323
#[cfg(feature = "finitestate")]
2424
use frame_support::PalletId;
25-
#[cfg(feature = "finitestate")]
26-
use sp_core::{H160, U256};
2725
use hex_literal::hex;
2826
use pallet_im_online::sr25519::AuthorityId as ImOnlineId;
2927
use sc_chain_spec::ChainSpecExtension;
@@ -34,12 +32,14 @@ use sp_authority_discovery::AuthorityId as AuthorityDiscoveryId;
3432
use sp_consensus_babe::AuthorityId as BabeId;
3533
use sp_core::{
3634
crypto::{Ss58Codec, UncheckedInto},
37-
sr25519, Pair, Public
35+
sr25519, Pair, Public,
3836
};
37+
#[cfg(feature = "finitestate")]
38+
use sp_core::{H160, U256};
3939
use sp_finality_grandpa::AuthorityId as GrandpaId;
40-
use sp_runtime::traits::{IdentifyAccount, Verify};
4140
#[cfg(feature = "finitestate")]
4241
use sp_runtime::traits::AccountIdConversion;
42+
use sp_runtime::traits::{IdentifyAccount, Verify};
4343

4444
#[cfg(feature = "automata")]
4545
pub type AutomataChainSpec = sc_service::GenericChainSpec<automata::GenesisConfig, Extensions>;

runtime/automata/src/lib.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,8 +33,8 @@ use sp_core::{
3333
};
3434
// use sp_io::hashing::blake2_128;
3535
use sp_runtime::traits::{
36-
BlakeTwo256, Block as BlockT, ConvertInto, Extrinsic, NumberFor,
37-
SaturatedConversion, StaticLookup, Verify,
36+
BlakeTwo256, Block as BlockT, ConvertInto, Extrinsic, NumberFor, SaturatedConversion,
37+
StaticLookup, Verify,
3838
};
3939
use sp_runtime::{
4040
create_runtime_str, generic, impl_opaque_keys,

0 commit comments

Comments
 (0)