tx: Expose the tx index

Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io>
This commit is contained in:
Alexandru Vasile
2022-12-16 10:31:51 +00:00
parent e6271dd94e
commit e44fcbe27e
+5
View File
@@ -334,6 +334,11 @@ impl<T: Config, C: OnlineClientT<T>> TxInBlock<T, C> {
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
/// was successful (ie no `ExtrinsicFailed`) events were found, then we return
/// the events associated with it. If the transaction was not successful, or