companion for #12212 (#6162)

* companion for #12212

* cargo fmt

* fix build

* update Cargo.lock

* update Cargo.lock
This commit is contained in:
Niklas Adolfsson
2022-10-18 20:09:37 +02:00
committed by GitHub
parent 9e690fe1b6
commit 400ee474a5
4 changed files with 207 additions and 189 deletions
+7 -2
View File
@@ -295,11 +295,16 @@ frame_support::parameter_types! {
/// Build the Ext at hash with all the data of `ElectionProviderMultiPhase` and any additional
/// pallets.
async fn create_election_ext<T: EPM::Config, B: BlockT + DeserializeOwned>(
async fn create_election_ext<T, B>(
client: SharedRpcClient,
at: Option<B::Hash>,
additional: Vec<String>,
) -> Result<Ext, Error<T>> {
) -> Result<Ext, Error<T>>
where
T: EPM::Config,
B: BlockT,
B::Header: DeserializeOwned,
{
use frame_support::{storage::generator::StorageMap, traits::PalletInfo};
use sp_core::hashing::twox_128;