mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-05-30 08:11:03 +00:00
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 <>
This commit is contained in:
committed by
GitHub
parent
975403e802
commit
45c71c0d04
Generated
+253
-252
File diff suppressed because it is too large
Load Diff
@@ -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(¶chain_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(¶chain_system_name.0), twox_128(b"LastHrmpMqcHeads")]
|
||||
.concat()
|
||||
|
||||
Reference in New Issue
Block a user