Unverified Commit 7135b58a authored by Arkadiy Paronyan's avatar Arkadiy Paronyan Committed by GitHub
Browse files

Update for the new substrate client API (#2570)

* Update for the new substrate client API

* Code review suggestions

* Update substrate
parent a99498d8
Pipeline #129301 passed with stages
in 34 minutes and 41 seconds
This diff is collapsed.
...@@ -228,15 +228,15 @@ impl sc_client_api::BlockBackend<Block> for Client { ...@@ -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),
} }
} }
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment