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

* Add missing extrincis function

* "Update Substrate"

Co-authored-by: parity-processbot <>
This commit is contained in:
Arkadiy Paronyan
2021-02-03 08:39:19 +01:00
committed by GitHub
parent 8a0c8cc425
commit c7db9ca542
2 changed files with 231 additions and 139 deletions
+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 {