staking-miner: remove need of a file to pass the seed (#3680)

* staking-miner: remove need of a file to pass the seed

* cleanup

* linting round

* fix linting

* fix naming and remove unused field
This commit is contained in:
Chevdor
2021-08-27 11:29:17 +02:00
committed by GitHub
parent 07301bd693
commit 47c75122d1
6 changed files with 26 additions and 29 deletions
@@ -82,7 +82,7 @@ where
Hash: serde::Serialize,
{
let key = <V as StorageValue<T>>::hashed_key();
get_storage::<V::Query>(&client, params! { key, maybe_at }).await
get_storage::<V::Query>(client, params! { key, maybe_at }).await
}
#[allow(unused)]
@@ -103,5 +103,5 @@ where
Hash: serde::Serialize,
{
let key = <M as StorageMap<K, T>>::hashed_key_for(key);
get_storage::<M::Query>(&client, params! { key, maybe_at }).await
get_storage::<M::Query>(client, params! { key, maybe_at }).await
}