Skip to content
Snippets Groups Projects
Commit 45c71c0d authored by Michal Kucharczyk's avatar Michal Kucharczyk Committed by GitHub
Browse files

BlockId removal: refactor: StorageProvider (#1770)

* BlockId removal: refactor: StorageProvider

It changes the arguments of `Backend::StorageProvider` trait from:
block: `BlockId<Block>` to: hash: `&Block::Hash`

* update lockfile for {"polkadot", "substrate"}

Co-authored-by: parity-processbot <>
parent 975403e8
No related merge requests found
This diff is collapsed.
......@@ -20,7 +20,6 @@ use cumulus_primitives_core::{
relay_chain, InboundDownwardMessage, InboundHrmpMessage, ParaId, PersistedValidationData,
};
use sc_client_api::{Backend, StorageProvider};
use sp_api::BlockId;
use sp_core::twox_128;
use sp_inherents::{InherentData, InherentDataProvider};
use sp_runtime::traits::Block;
......@@ -116,7 +115,7 @@ impl MockXcmConfig {
) -> Self {
let starting_dmq_mqc_head = client
.storage(
&BlockId::Hash(parent_block),
&parent_block,
&sp_storage::StorageKey(
[twox_128(&parachain_system_name.0), twox_128(b"LastDmqMqcHead")]
.concat()
......@@ -131,7 +130,7 @@ impl MockXcmConfig {
let starting_hrmp_mqc_heads = client
.storage(
&BlockId::Hash(parent_block),
&parent_block,
&sp_storage::StorageKey(
[twox_128(&parachain_system_name.0), twox_128(b"LastHrmpMqcHeads")]
.concat()
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment