mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-05-30 08:11:03 +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:
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,
|
&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),
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user