diff --git a/substrate/frame/bounties/src/migrations/v4.rs b/substrate/frame/bounties/src/migrations/v4.rs index 4da34c329df5..ceca379d4949 100644 --- a/substrate/frame/bounties/src/migrations/v4.rs +++ b/substrate/frame/bounties/src/migrations/v4.rs @@ -16,13 +16,8 @@ // limitations under the License. use core::str; -use frame::{ - deps::{ - sp_core::hexdisplay::HexDisplay, - sp_io::{hashing::twox_128, storage}, - }, - testing_prelude::*, -}; +use frame::testing_prelude::*; + use crate as pallet_bounties; diff --git a/substrate/frame/bounties/src/tests.rs b/substrate/frame/bounties/src/tests.rs index 45ffb5c00ec9..a43c3c66e776 100644 --- a/substrate/frame/bounties/src/tests.rs +++ b/substrate/frame/bounties/src/tests.rs @@ -172,8 +172,8 @@ impl Default for ExtBuilder { } impl ExtBuilder { - pub fn build(self) -> sp_io::TestExternalities { - let mut ext: sp_io::TestExternalities = RuntimeGenesisConfig { + pub fn build(self) -> TestState { + let mut ext: TestState = RuntimeGenesisConfig { system: frame_system::GenesisConfig::default(), balances: pallet_balances::GenesisConfig { balances: vec![(0, 100), (1, 98), (2, 1)], diff --git a/substrate/frame/src/lib.rs b/substrate/frame/src/lib.rs index 0801447b9f7c..2fbdcaa17cb6 100644 --- a/substrate/frame/src/lib.rs +++ b/substrate/frame/src/lib.rs @@ -337,7 +337,6 @@ pub mod testing_prelude { /// Testing includes building a runtime, so we bring in all preludes related to runtimes as /// well. - pub use super::runtime::testing_prelude::*; /// Other helper macros from `frame_support` that help with asserting in tests. pub use frame_support::{