mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-06-13 09:21:05 +00:00
companion for substrate#9788 (#3858)
* companion for https://github.com/paritytech/substrate/pull/9788 * fmt * Some fixes * final fixes * fix a few small things * update Substrate Co-authored-by: parity-processbot <>
This commit is contained in:
@@ -41,7 +41,7 @@ pub(crate) async fn test_voter_bags_migration<
|
||||
let mut ext = Builder::<Block>::new()
|
||||
.mode(Mode::Online(OnlineConfig {
|
||||
transport: ws_url.to_string().into(),
|
||||
modules: vec!["Staking".to_string()],
|
||||
pallets: vec!["Staking".to_string()],
|
||||
at: None,
|
||||
state_snapshot: None,
|
||||
}))
|
||||
|
||||
@@ -389,15 +389,15 @@ async fn create_election_ext<T: EPM::Config, B: BlockT>(
|
||||
use frame_support::{storage::generator::StorageMap, traits::PalletInfo};
|
||||
use sp_core::hashing::twox_128;
|
||||
|
||||
let mut modules = vec![<T as frame_system::Config>::PalletInfo::name::<EPM::Pallet<T>>()
|
||||
let mut pallets = vec![<T as frame_system::Config>::PalletInfo::name::<EPM::Pallet<T>>()
|
||||
.expect("Pallet always has name; qed.")
|
||||
.to_string()];
|
||||
modules.extend(additional);
|
||||
pallets.extend(additional);
|
||||
Builder::<B>::new()
|
||||
.mode(Mode::Online(OnlineConfig {
|
||||
transport: uri.into(),
|
||||
at,
|
||||
modules,
|
||||
pallets,
|
||||
..Default::default()
|
||||
}))
|
||||
.inject_hashed_prefix(&<frame_system::BlockHash<T>>::prefix_hash())
|
||||
|
||||
Reference in New Issue
Block a user