Companion for #7963 (IPFS server) (#2315)

* Add missing extrincis function

* "Update Substrate"

Co-authored-by: parity-processbot <>
This commit is contained in:
Arkadiy Paronyanandparity-processbot authored and GitHub committed 2021-02-03 07:39:19 +00:00
1 parent 8a0c8cc425
commit c7db9ca542
2 files changed
+231 -139

No files matched your search

+218 -139
View File
File diff suppressed because it is too large. Load diff
+13
View File
@@ -229,6 +229,19 @@ impl sc_client_api::BlockBackend<Block> for Client {
Self::Rococo(client) => client.block_hash(number),
}
}
fn extrinsic(
&self,
id: &<Block as BlockT>::Hash
) -> sp_blockchain::Result<Option<<Block as BlockT>::Extrinsic>> {
match self {
Self::Polkadot(client) => client.extrinsic(id),
Self::Westend(client) => client.extrinsic(id),
Self::Kusama(client) => client.extrinsic(id),
Self::Rococo(client) => client.extrinsic(id),
}
}
}
impl sc_client_api::StorageProvider<Block, crate::FullBackend> for Client {