Update for the new substrate client API (#2570)

* Update for the new substrate client API

* Code review suggestions

* Update substrate
This commit is contained in:
Arkadiy Paronyan
2021-03-18 13:42:53 +01:00
committed by GitHub
parent 928a03c179
commit 6437740acf
2 changed files with 165 additions and 153 deletions
+159 -147
View File
File diff suppressed because it is too large Load Diff
+6 -6
View File
@@ -228,15 +228,15 @@ impl sc_client_api::BlockBackend<Block> for Client {
} }
} }
fn extrinsic( fn indexed_transaction(
&self, &self,
id: &<Block as BlockT>::Hash id: &<Block as BlockT>::Hash
) -> sp_blockchain::Result<Option<<Block as BlockT>::Extrinsic>> { ) -> sp_blockchain::Result<Option<Vec<u8>>> {
match self { match self {
Self::Polkadot(client) => client.extrinsic(id), Self::Polkadot(client) => client.indexed_transaction(id),
Self::Westend(client) => client.extrinsic(id), Self::Westend(client) => client.indexed_transaction(id),
Self::Kusama(client) => client.extrinsic(id), Self::Kusama(client) => client.indexed_transaction(id),
Self::Rococo(client) => client.extrinsic(id), Self::Rococo(client) => client.indexed_transaction(id),
} }
} }