Skip to content

Commit efb04e4

Browse files
committed
fix: remove tx index from cip-509 validate function
Signed-off-by: bkioshn <[email protected]>
1 parent 6356c44 commit efb04e4

File tree

1 file changed

+2
-3
lines changed
  • rust/rbac-registration/src/cardano/cip509

1 file changed

+2
-3
lines changed

rust/rbac-registration/src/cardano/cip509/mod.rs

+2-3
Original file line numberDiff line numberDiff line change
@@ -188,10 +188,9 @@ impl Cip509 {
188188
///
189189
/// # Parameters
190190
/// * `txn` - Transaction data was attached to and to be validated/decoded against.
191-
/// * `txn_idx` - Transaction Index
192191
/// * `validation_report` - Validation report to store the validation result.
193192
pub fn validate(
194-
&self, txn: &MultiEraTx, txn_idx: usize, validation_report: &mut Vec<String>,
193+
&self, txn: &MultiEraTx, validation_report: &mut Vec<String>,
195194
) -> bool {
196195
let tx_input_validate =
197196
validate_txn_inputs_hash(self, txn, validation_report).unwrap_or(false);
@@ -207,7 +206,7 @@ impl Cip509 {
207206
stake_key_validate =
208207
validate_stake_public_key(self, txn, validation_report).unwrap_or(false);
209208
payment_key_validate =
210-
validate_payment_key(txn, txn_idx, role, validation_report)
209+
validate_payment_key(txn, role, validation_report)
211210
.unwrap_or(false);
212211
signing_key = validate_role_singing_key(role, validation_report);
213212
}

0 commit comments

Comments
 (0)