mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-11-09 12:17:07 +00:00
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:
1 parent
127771ba38
commit
8223d3ae71
2 files changed
+186
-161
No files matched your search
Generated
+175
-161
File diff suppressed because it is too large.
Load diff
@@ -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 {
|
||||
|
||||
Reference in new issue
Block a user