Update for the new substrate client API (#2890)

* Update for the new substrate client API

* update Substrate

Co-authored-by: parity-processbot <>
This commit is contained in:
Arkadiy Paronyan
2021-06-04 09:21:46 +02:00
committed by GitHub
parent 127771ba38
commit 8223d3ae71
2 changed files with 186 additions and 161 deletions
+175 -161
View File
File diff suppressed because it is too large Load Diff
+11
View File
@@ -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 {