Move EraIndex to sp-staking (#10671)

* Move `EraIndex` to sp-staking

* Fix imports in mocks

* Run cargo +nightly-2021-10-29 fmt
This commit is contained in:
Zeke Mostov
2022-01-16 18:15:18 -08:00
committed by GitHub
parent 0bca06a483
commit 16212851c6
8 changed files with 16 additions and 18 deletions
+1 -2
View File
@@ -30,7 +30,6 @@ use frame_support::{
},
};
use pallet_session::historical as pallet_session_historical;
use pallet_staking::EraIndex;
use sp_core::{crypto::KeyTypeId, H256};
use sp_finality_grandpa::{RoundNumber, SetId, GRANDPA_ENGINE_ID};
use sp_keyring::Ed25519Keyring;
@@ -41,7 +40,7 @@ use sp_runtime::{
traits::{IdentityLookup, OpaqueKeys},
DigestItem, Perbill,
};
use sp_staking::SessionIndex;
use sp_staking::{EraIndex, SessionIndex};
type UncheckedExtrinsic = frame_system::mocking::MockUncheckedExtrinsic<Test>;
type Block = frame_system::mocking::MockBlock<Test>;