Unverified Commit 2a27ac7e authored by Arkadiy Paronyan's avatar Arkadiy Paronyan Committed by GitHub
Browse files

Update for the new substrate client API (#2890)

* Update for the new substrate client API

* update Substrate

Co-authored-by: parity-processbot <>
parent ec6359e5
Pipeline #140667 passed with stages
in 37 minutes and 26 seconds
This diff is collapsed.
......@@ -253,6 +253,17 @@ impl sc_client_api::BlockBackend<Block> for Client {
}
}
fn block_indexed_body(
&self,
id: &BlockId<Block>
) -> sp_blockchain::Result<Option<Vec<Vec<u8>>>> {
match self {
Self::Polkadot(client) => client.block_indexed_body(id),
Self::Westend(client) => client.block_indexed_body(id),
Self::Kusama(client) => client.block_indexed_body(id),
Self::Rococo(client) => client.block_indexed_body(id),
}
}
}
impl sc_client_api::StorageProvider<Block, crate::FullBackend> for Client {
......
Supports Markdown
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