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::{
99
1010use anyhow:: { bail, Context } ;
1111use c509_certificate:: c509:: C509 ;
12- use cardano_blockchain_types:: { Point , StakeAddress , TransactionId } ;
12+ use cardano_blockchain_types:: { Point , StakeAddress , TransactionId , TxnIndex } ;
1313use catalyst_types:: {
1414 catalyst_id:: { key_rotation:: KeyRotation , role_index:: RoleId , CatalystId } ,
1515 conversion:: zero_out_last_n_bytes,
@@ -89,13 +89,18 @@ impl RegistrationChain {
8989 * self . inner . current_tx_id_hash . data ( )
9090 }
9191
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.
9493 #[ must_use]
9594 pub fn current_point ( & self ) -> & Point {
9695 self . inner . current_tx_id_hash . point ( )
9796 }
9897
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+
99104 /// Get a list of purpose for this registration chain.
100105 #[ must_use]
101106 pub fn purpose ( & self ) -> & [ UuidV4 ] {
You can’t perform that action at this time.
0 commit comments