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

Commit

Permalink
Revert test_ext heap_page insert; adjust storage root instead
Browse files Browse the repository at this point in the history
  • Loading branch information
emostov committed Jun 8, 2021
1 parent 81da802 commit f57f9ae
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions frame/executive/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -821,11 +821,7 @@ mod tests {
}

fn new_test_ext(balance_factor: Balance) -> sp_io::TestExternalities {
use sp_core::storage::well_known_keys::HEAP_PAGES;
use sp_state_machine::HEAP_PAGES_TEST_LEGACY;

let mut t = frame_system::GenesisConfig::default().build_storage::<Runtime>().unwrap();
t.top.insert(HEAP_PAGES.to_vec(), HEAP_PAGES_TEST_LEGACY.encode());
pallet_balances::GenesisConfig::<Runtime> {
balances: vec![(1, 111 * balance_factor)],
}.assimilate_storage(&mut t).unwrap();
Expand All @@ -839,7 +835,7 @@ mod tests {
header: Header {
parent_hash: [69u8; 32].into(),
number: 1,
state_root: hex!("6e70de4fa07bac443dc7f8a812c8a0c941aacfa892bb373c5899f7d511d4c25b").into(),
state_root: hex!("ec6bb58b0e4bc7fdf0151a0f601eb825f529fbf90b5be5b2024deba30c5cbbcb").into(),
extrinsics_root: hex!("03170a2e7597b7b7e3d84c05391d139a62b157e78786d8c082f29dcf4c111314").into(),
digest: Digest { logs: vec![], },
},
Expand Down

0 comments on commit f57f9ae

Please sign in to comment.