mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-10-25 13:15:02 +00:00
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:
1 parent
928a03c179
commit
6437740acf
2 files changed
+165
-153
No files matched your search
Generated
+159
-147
File diff suppressed because it is too large.
Load diff
@@ -228,15 +228,15 @@ impl sc_client_api::BlockBackend<Block> for Client {
|
||||
}
|
||||
}
|
||||
|
||||
fn extrinsic(
|
||||
fn indexed_transaction(
|
||||
&self,
|
||||
id: &<Block as BlockT>::Hash
|
||||
) -> sp_blockchain::Result<Option<<Block as BlockT>::Extrinsic>> {
|
||||
) -> sp_blockchain::Result<Option<Vec<u8>>> {
|
||||
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),
|
||||
Self::Polkadot(client) => client.indexed_transaction(id),
|
||||
Self::Westend(client) => client.indexed_transaction(id),
|
||||
Self::Kusama(client) => client.indexed_transaction(id),
|
||||
Self::Rococo(client) => client.indexed_transaction(id),
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user