Skip to content
This repository has been archived by the owner on Nov 15, 2023. It is now read-only.

Commit

Permalink
fix imports
Browse files Browse the repository at this point in the history
  • Loading branch information
shawntabrizi committed Jul 13, 2021
1 parent 11bfb66 commit 5f644dc
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion frame/tips/src/tests.rs
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ use std::cell::RefCell;
use frame_support::{
assert_noop, assert_ok, parameter_types,
weights::Weight, traits::SortedMembers,
PalletId
PalletId, pallet_prelude::GenesisBuild,
};
use sp_runtime::Permill;
use sp_core::H256;
Expand Down
6 changes: 3 additions & 3 deletions frame/treasury/src/tests.rs
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ use sp_runtime::{

use frame_support::{
assert_noop, assert_ok, parameter_types,
traits::OnInitialize, PalletId
traits::OnInitialize, PalletId, pallet_prelude::GenesisBuild,
};

use crate as treasury;
Expand Down Expand Up @@ -131,7 +131,7 @@ pub fn new_test_ext() -> sp_io::TestExternalities {
// Total issuance will be 200 with treasury account initialized at ED.
balances: vec![(0, 100), (1, 98), (2, 1)],
}.assimilate_storage(&mut t).unwrap();
GenesisBuild::<Test>::assimilate_storage(&pallet_treasury::GenesisConfig, &mut t).unwrap();
GenesisBuild::<Test>::assimilate_storage(&crate::GenesisConfig, &mut t).unwrap();
t.into()
}

Expand Down Expand Up @@ -357,7 +357,7 @@ fn genesis_funding_works() {
// Total issuance will be 200 with treasury account initialized with 100.
balances: vec![(0, 100), (Treasury::account_id(), initial_funding)],
}.assimilate_storage(&mut t).unwrap();
GenesisBuild::<Test>::assimilate_storage(&pallet_treasury::GenesisConfig, &mut t).unwrap();
GenesisBuild::<Test>::assimilate_storage(&crate::GenesisConfig, &mut t).unwrap();
let mut t: sp_io::TestExternalities = t.into();

t.execute_with(|| {
Expand Down

0 comments on commit 5f644dc

Please sign in to comment.