File tree Expand file tree Collapse file tree 1 file changed +8
-3
lines changed
rust/rbac-registration/src/registration/cardano Expand file tree Collapse file tree 1 file changed +8
-3
lines changed Original file line number Diff line number Diff line change @@ -9,7 +9,7 @@ use std::{
9
9
10
10
use anyhow:: { bail, Context } ;
11
11
use c509_certificate:: c509:: C509 ;
12
- use cardano_blockchain_types:: { Point , StakeAddress , TransactionId } ;
12
+ use cardano_blockchain_types:: { Point , StakeAddress , TransactionId , TxnIndex } ;
13
13
use catalyst_types:: {
14
14
catalyst_id:: { key_rotation:: KeyRotation , role_index:: RoleId , CatalystId } ,
15
15
conversion:: zero_out_last_n_bytes,
@@ -89,13 +89,18 @@ impl RegistrationChain {
89
89
* self . inner . current_tx_id_hash . data ( )
90
90
}
91
91
92
- /// Returns a point (slot and transaction index) of the latest transaction in the
93
- /// registration chain.
92
+ /// Returns a point (slot) of the latest transaction in the registration chain.
94
93
#[ must_use]
95
94
pub fn current_point ( & self ) -> & Point {
96
95
self . inner . current_tx_id_hash . point ( )
97
96
}
98
97
98
+ /// Returns an index of the latest transaction in the registration chain.
99
+ #[ must_use]
100
+ pub fn current_txn_index ( & self ) -> TxnIndex {
101
+ self . inner . current_tx_id_hash . txn_index ( )
102
+ }
103
+
99
104
/// Get a list of purpose for this registration chain.
100
105
#[ must_use]
101
106
pub fn purpose ( & self ) -> & [ UuidV4 ] {
You can’t perform that action at this time.
0 commit comments