mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-07-22 20:45:40 +00:00
tx: Expose the tx index
Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io>
This commit is contained in:
@@ -334,6 +334,11 @@ impl<T: Config, C: OnlineClientT<T>> TxInBlock<T, C> {
|
|||||||
self.ext_hash
|
self.ext_hash
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/// Return the index of the extrinsic that was submitted.
|
||||||
|
pub fn extrinsic_index(&self) -> usize {
|
||||||
|
self.index
|
||||||
|
}
|
||||||
|
|
||||||
/// Fetch the events associated with this transaction. If the transaction
|
/// Fetch the events associated with this transaction. If the transaction
|
||||||
/// was successful (ie no `ExtrinsicFailed`) events were found, then we return
|
/// was successful (ie no `ExtrinsicFailed`) events were found, then we return
|
||||||
/// the events associated with it. If the transaction was not successful, or
|
/// the events associated with it. If the transaction was not successful, or
|
||||||
|
|||||||
Reference in New Issue
Block a user