Skip to content
This repository has been archived by the owner on Nov 15, 2023. It is now read-only.

Companion for #7963 (IPFS server) #2315

Merged
6 commits merged into from
Feb 3, 2021
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 13 additions & 0 deletions node/service/src/client.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down