Skip to content
Snippets Groups Projects
Commit 8223d3ae 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 127771ba
Branches
No related merge requests found
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 {
......
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