Skip to content

Commit

Permalink
fix: format
Browse files Browse the repository at this point in the history
  • Loading branch information
bkioshn committed Dec 2, 2024
1 parent b3930b0 commit 8995c3a
Showing 1 changed file with 10 additions and 6 deletions.
16 changes: 10 additions & 6 deletions rust/rbac-registration/src/registration/cardano/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -480,18 +480,22 @@ fn update_role_data(
// If there is new role singing key, use it, else use the old one
let signing_key = match role_data.role_signing_key {
Some(key) => Some(key),
None => match inner.role_data.get(&role_data.role_number) {
Some((_, role_data)) => role_data.signing_key_ref().clone(),
None => None,
None => {
match inner.role_data.get(&role_data.role_number) {
Some((_, role_data)) => role_data.signing_key_ref().clone(),
None => None,
}
},
};

// If there is new role encryption key, use it, else use the old one
let encryption_key = match role_data.role_encryption_key {
Some(key) => Some(key),
None => match inner.role_data.get(&role_data.role_number) {
Some((_, role_data)) => role_data.encryption_ref().clone(),
None => None,
None => {
match inner.role_data.get(&role_data.role_number) {
Some((_, role_data)) => role_data.encryption_ref().clone(),
None => None,
}
},
};
let payment_key = get_shelley_addr_from_tx(txn, role_data.payment_key)?;
Expand Down

0 comments on commit 8995c3a

Please sign in to comment.